Lines Matching full:usage
147 * Usage Page (Desktop), ; Generic desktop controls (01h)
148 * Usage (Joystick), ; Joystick (04h, application collection)
157 * Usage (X), ; X (30h, dynamic value)
158 * Usage (X), ; X (30h, dynamic value)
159 * Usage (X), ; X (30h, dynamic value)
160 * Usage (X), ; X (30h, dynamic value)
161 * Usage (Y), ; Y (31h, dynamic value)
168 * Usage (00h),
175 * Usage Page (Button), ; Button (09h)
176 * Usage Minimum (01h),
177 * Usage Maximum (0Ah),
179 * Usage Page (FF00h), ; FF00h, vendor-defined
184 * Usage (01h),
192 * Usage (02h),
203 0x05, 0x01, /* Usage Page (Desktop), */
204 0x09, 0x04, /* Usage (Joystick), */
213 0x09, 0x30, /* Usage (X), */
214 0x09, 0x31, /* Usage (Y), */
221 0x05, 0x09, /* Usage Page (Button), */
222 0x19, 0x01, /* Usage Minimum (01h), */
223 0x29, 0x0A, /* Usage Maximum (0Ah), */
245 #define map_abs(c) hid_map_usage(hi, usage, bit, max, EV_ABS, (c))
246 #define map_rel(c) hid_map_usage(hi, usage, bit, max, EV_REL, (c))
249 struct hid_field *field, struct hid_usage *usage, in dr_input_mapping() argument
252 switch (usage->hid) { in dr_input_mapping()
255 * can be randomly assigned when hid->usage is reused. in dr_input_mapping()
260 map_rel(usage->hid & 0xf); in dr_input_mapping()
262 map_abs(usage->hid & 0xf); in dr_input_mapping()