annotate src/video/qnxgf/SDL_gf_input.h @ 3600:e36bead37acb

Updated to include new files
author Sam Lantinga <slouken@libsdl.org>
date Thu, 24 Dec 2009 19:18:41 +0000
parents 7f684f249ec9
children f7b03b6838cb
rev   line source
3109
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
1 /*
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
2 SDL - Simple DirectMedia Layer
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
3 Copyright (C) 1997-2009 Sam Lantinga
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
4
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
5 This library is free software; you can redistribute it and/or
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
6 modify it under the terms of the GNU Lesser General Public
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
7 License as published by the Free Software Foundation; either
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
8 version 2.1 of the License, or (at your option) any later version.
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
9
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
10 This library is distributed in the hope that it will be useful,
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
13 Lesser General Public License for more details.
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
14
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
15 You should have received a copy of the GNU Lesser General Public
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
16 License along with this library; if not, write to the Free Software
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
18
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
19 Sam Lantinga
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
20 slouken@libsdl.org
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
21
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
22 QNX Graphics Framework SDL driver
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
23 Copyright (C) 2009 Mike Gorchak
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
24 (mike@malva.ua, lestat@i.com.ua)
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
25 */
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
26
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
27 #ifndef __SDL_GF_INPUT_H__
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
28 #define __SDL_GF_INPUT_H__
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
29
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
30 #include "SDL_config.h"
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
31 #include "SDL_video.h"
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
32 #include "../SDL_sysvideo.h"
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
33
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
34 #include <errno.h>
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
35
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
36 #include <gf/gf.h>
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
37
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
38 #include <sys/hiddi.h>
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
39 #include <sys/hidut.h>
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
40
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
41 #include "SDL_qnxgf.h"
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
42
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
43 typedef struct SDL_MouseData
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
44 {
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
45 SDL_DisplayData *didata;
3109
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
46 } SDL_MouseData;
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
47
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
48 int32_t gf_addinputdevices(_THIS);
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
49 int32_t gf_delinputdevices(_THIS);
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
50
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
51 #define SDL_GF_MOUSE_COLOR_BLACK 0xFF000000
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
52 #define SDL_GF_MOUSE_COLOR_WHITE 0xFFFFFFFF
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
53 #define SDL_GF_MOUSE_COLOR_TRANS 0x00000000
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
54
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
55 /*****************************************************************************/
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
56 /* This is HIDDI closed interface declarations */
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
57 /*****************************************************************************/
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
58 #define HID_TYPE_MAIN 0x0
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
59 #define HID_TYPE_GLOBAL 0x1
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
60 #define HID_TYPE_LOCAL 0x2
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
61 #define HID_TYPE_RESERVED 0x3
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
62
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
63 #define HID_GLOBAL_USAGE_PAGE 0x0
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
64 #define HID_LOCAL_USAGE 0x0
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
65
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
66 typedef struct _hid_byte
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
67 {
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
68 uint8_t HIDB_Length;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
69 uint8_t HIDB_Type;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
70 uint8_t HIDB_Tag;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
71 uint8_t reserved[1];
3109
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
72 } hid_byte_t;
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
73
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
74 typedef struct _hidd_global_item
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
75 {
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
76 uint16_t usage_page;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
77 uint16_t logical_min;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
78 uint16_t logical_max;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
79 uint16_t physical_min;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
80 uint16_t physical_max;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
81 uint16_t unit_expo;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
82 uint16_t unit;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
83 uint16_t report_size;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
84 uint16_t report_id;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
85 uint16_t report_count;
3109
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
86 } hidd_global_item_t;
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
87
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
88 typedef struct _hidd_local_item
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
89 {
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
90 uint16_t type;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
91 uint8_t reserved[2];
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
92 uint32_t value;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
93 struct _hidd_local_item *next_local;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
94 struct _hidd_local_item *alt_local;
3109
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
95 } hidd_local_item_t;
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
96
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
97 typedef struct _hidd_local_table
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
98 {
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
99 hidd_local_item_t *usage_info;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
100 hidd_local_item_t *designator_info;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
101 hidd_local_item_t *string_info;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
102 uint8_t delimiter;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
103 uint8_t reserved[3];
3109
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
104 } hidd_local_table_t;
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
105
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
106 typedef struct _hidd_field
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
107 {
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
108 struct hidd_report_instance *report;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
109 struct hidd_collection *collection;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
110 uint16_t report_offset;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
111 uint16_t flags;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
112 hidd_global_item_t gitem;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
113 hidd_local_table_t *ltable;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
114 struct _hidd_field *next_field;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
115 void *user;
3109
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
116 } hidd_field_t;
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
117
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
118 typedef struct hidd_report_instance
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
119 {
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
120 uint8_t report_id;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
121 uint8_t reserved[1];
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
122 uint16_t report_type;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
123 hidd_field_t *field;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
124 uint16_t num_field;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
125 uint16_t byte_len;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
126 uint16_t bit_len;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
127 uint8_t reserved2[2];
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
128 struct hidd_collection *collection;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
129 struct hidd_report_instance *next_col_report;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
130 struct hidd_report_instance *next_report;
3109
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
131 } hidd_report_instance_t;
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
132
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
133 typedef struct hidd_report
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
134 {
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
135 TAILQ_ENTRY(hidd_report) link;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
136 hidd_report_instance_t *rinst;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
137 hidd_device_instance_t *dev_inst;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
138 uint32_t flags;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
139 struct hidd_connection *connection;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
140 void *user;
3109
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
141 } hidd_report_t;
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
142
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
143 typedef struct hidview_device
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
144 {
3139
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
145 struct hidd_report_instance *instance;
Sam Lantinga <slouken@libsdl.org>
parents: 3109
diff changeset
146 struct hidd_report *report;
3109
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
147 } hidview_device_t;
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
148
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
149 /*****************************************************************************/
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
150 /* Closed HIDDI interface declarations end */
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
151 /*****************************************************************************/
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
152
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
153 /* Maximum devices and subdevices amount per host */
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
154 #define SDL_HIDDI_MAX_DEVICES 64
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
155
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
156 /* Detected device/subdevice type for SDL */
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
157 #define SDL_GF_HIDDI_NONE 0x00000000
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
158 #define SDL_GF_HIDDI_MOUSE 0x00000001
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
159 #define SDL_GF_HIDDI_KEYBOARD 0x00000002
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
160 #define SDL_GF_HIDDI_JOYSTICK 0x00000003
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
161
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
162 extern void hiddi_enable_mouse();
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
163 extern void hiddi_disable_mouse();
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
164
7b3a09fb9c8b Support for HID devices (mice and keyboards only for now) has been added
Mike Gorchak <lestat@i.com.ua>
parents:
diff changeset
165 #endif /* __SDL_GF_INPUT_H__ */