Lines Matching defs:input
22 #include <linux/input.h>
30 #include "caiaq-input.h"
179 struct input_dev *input;
182 input = input_allocate_device();
183 if (!input)
186 input->name = dev->product_name;
187 input->id.bustype = BUS_USB;
188 input->id.vendor = usb_dev->descriptor.idVendor;
189 input->id.product = usb_dev->descriptor.idProduct;
190 input->id.version = usb_dev->descriptor.bcdDevice;
194 input->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);
195 input->absbit[0] = BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_Z);
196 input->keycode = keycode_rk2;
197 input->keycodesize = sizeof(char);
198 input->keycodemax = ARRAY_SIZE(keycode_rk2);
200 set_bit(keycode_rk2[i], input->keybit);
202 input_set_abs_params(input, ABS_X, 0, 4096, 0, 10);
203 input_set_abs_params(input, ABS_Y, 0, 4096, 0, 10);
204 input_set_abs_params(input, ABS_Z, 0, 4096, 0, 10);
208 input->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);
209 input->absbit[0] = BIT(ABS_X);
210 input->keycode = keycode_ak1;
211 input->keycodesize = sizeof(char);
212 input->keycodemax = ARRAY_SIZE(keycode_ak1);
214 set_bit(keycode_ak1[i], input->keybit);
216 input_set_abs_params(input, ABS_X, 0, 999, 0, 10);
220 /* no input methods supported on this device */
221 input_free_device(input);
225 ret = input_register_device(input);
227 input_free_device(input);
231 dev->input_dev = input;