/linux-4.4.14/Documentation/input/ |
D | gpio-tilt.txt | 6 i.e. each tilt switch providing one axis, and the number of axes 16 The array of struct gpio_tilt_axis describes the axes that are reported 18 input_set_abs_params calls needed to init the axes. 23 In the same manner the values stored in the axes array correspond to 49 .axes = (int[]) { 54 .axes = (int[]) { 59 .axes = (int[]) { 64 .axes = (int[]) { 84 .axes = sg060_tilt_axes,
|
D | xpad.txt | 20 The number of buttons/axes reported varies based on 3 things: 24 module configuration for "Map D-PAD to buttons rather than axes for unknown 28 the driver will map the directional pad to axes (X/Y). 40 With a normal controller, the directional pad is mapped to its own X/Y axes. 42 axes and 10 buttons. 44 All 8 axes work, though they all have the same range (-32768..32767) 60 When using a known dance pad, jstest will report 6 axes and 14 buttons. 63 have been made. The old driver would map the d-pad to axes, resulting 70 If your dance pad is recognized by the driver but is using axes instead 165 18 inputs (8 axes, 10 buttons), and its values should change if you move [all …]
|
D | gameport-programming.txt | 72 int my_cooked_read(struct gameport *gameport, int *axes, int *buttons) 77 axes[i] = my_mmio[i]; 152 int (*cooked_read)(struct gameport *, int *axes, int *buttons); 155 read function. It should fill axes[0..3] with four values of the joystick axes 158 int (*calibrate)(struct gameport *, int *axes, int *max); 160 Function for calibrating the ADC hardware. When called, axes[0..3] should be 164 recompute the axes[] values to match the new sensitivity or re-read them from
|
D | rotary-encoder.txt | 88 axes. For relative axes the input event returns +/-1 for each step. For 89 absolute axes the position of the encoder can either roll over between zero
|
D | event-codes.txt | 299 Directional axes on this device (absolute and/or relative x, y, z) represent 300 accelerometer data. All other axes retain their meaning. A device must not mix 301 regular directional axes and accelerometer axes on the same event node.
|
D | joystick-api.txt | 198 #define JSIOCGAXES /* get number of axes char */ 205 For example, to read the number of axes
|
D | joystick.txt | 122 move the stick, and press its buttons. The axes should all be zero when the 181 For other joystick types (more/less axes, hats, and buttons) support 585 to 2 axes, and applications using it usually decode only 2 buttons, although
|
D | iforce-protocol.txt | 75 Val c = X and Y axes. Bytes 05 must contain 60
|
D | multi-touch-protocol.txt | 308 tool axis points towards the touch point [1]. Otherwise, the tool axes are 309 aligned with the touch axes.
|
D | alps.txt | 164 The second packet type contains bitmaps representing the x and y axes. In the
|
D | joystick-parport.txt | 470 registered as key presses instead of X and Y axes.
|
/linux-4.4.14/drivers/input/gameport/ |
D | lightning.c | 76 static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons) in l4_cooked_read() argument 94 axes[i] = inb(L4_PORT); in l4_cooked_read() 95 if (axes[i] > 252) axes[i] = -1; in l4_cooked_read() 196 static int l4_calibrate(struct gameport *gameport, int *axes, int *max) in l4_calibrate() argument 208 axes[i] = (axes[i] < 0) ? -1 : (axes[i] * cal[i]) / t; in l4_calibrate() 209 axes[i] = (axes[i] > 252) ? 252 : axes[i]; in l4_calibrate()
|
D | fm801-gp.c | 44 static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons) in fm801_gp_cooked_read() argument 50 axes[0] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read() 52 axes[1] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read() 55 axes[2] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read() 57 axes[3] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
|
/linux-4.4.14/drivers/input/joystick/ |
D | spaceorb.c | 79 int axes[6]; in spaceorb_process_packet() local 98 axes[0] = ( data[2] << 3) | (data[ 3] >> 4); in spaceorb_process_packet() 99 axes[1] = ((data[3] & 0x0f) << 6) | (data[ 4] >> 1); in spaceorb_process_packet() 100 axes[2] = ((data[4] & 0x01) << 9) | (data[ 5] << 2) | (data[4] >> 5); in spaceorb_process_packet() 101 axes[3] = ((data[6] & 0x1f) << 5) | (data[ 7] >> 2); in spaceorb_process_packet() 102 axes[4] = ((data[7] & 0x03) << 8) | (data[ 8] << 1) | (data[7] >> 6); in spaceorb_process_packet() 103 axes[5] = ((data[9] & 0x3f) << 4) | (data[10] >> 3); in spaceorb_process_packet() 105 input_report_abs(dev, spaceorb_axes[i], axes[i] - ((axes[i] & 0x200) ? 1024 : 0)); in spaceorb_process_packet()
|
D | a3d.c | 58 int axes[4]; member 132 a3d->axes[0] = ((signed char)((data[11] << 6) | (data[12] << 3) | (data[13]))) + 128; in a3d_read() 133 a3d->axes[1] = ((signed char)((data[14] << 6) | (data[15] << 3) | (data[16]))) + 128; in a3d_read() 134 a3d->axes[2] = ((signed char)((data[17] << 6) | (data[18] << 3) | (data[19]))) + 128; in a3d_read() 135 a3d->axes[3] = ((signed char)((data[20] << 6) | (data[21] << 3) | (data[22]))) + 128; in a3d_read() 197 static int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons) in a3d_adc_cooked_read() argument 203 axes[i] = (a3d->axes[i] < 254) ? a3d->axes[i] : -1; in a3d_adc_cooked_read() 322 int axes[] = { ABS_X, ABS_Y, ABS_THROTTLE, ABS_RUDDER }; in a3d_connect() local 344 input_set_abs_params(input_dev, axes[i], in a3d_connect() 345 48, input_abs_get_val(input_dev, axes[i]) * 2 - 48, 0, 8); in a3d_connect() [all …]
|
D | analog.c | 132 int axes[4]; member 202 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) in analog_decode() argument 209 if (axes[3] < ((initial[3] * ((i << 1) + 1)) >> 3)) { in analog_decode() 223 input_report_key(dev, analog_pads[0], axes[2] < (initial[2] >> 1)); in analog_decode() 225 input_report_key(dev, analog_pads[1], axes[3] < (initial[3] >> 1)); in analog_decode() 227 input_report_key(dev, analog_pads[2], axes[2] > (initial[2] + (initial[2] >> 1))); in analog_decode() 229 input_report_key(dev, analog_pads[3], axes[3] > (initial[3] + (initial[3] >> 1))); in analog_decode() 233 input_report_abs(dev, analog_axes[j++], axes[i]); in analog_decode() 294 port->axes[j] = (delta(start, time[i]) << ANALOG_FUZZ_BITS) / port->loop; in analog_cooked_read() 341 port->bads -= gameport_cooked_read(port->gameport, port->axes, &port->buttons); in analog_poll() [all …]
|
D | joydump.c | 53 int axes[4], buttons; in joydump_connect() local 73 gameport_cooked_read(gameport, axes, &buttons); in joydump_connect() 76 printk(KERN_INFO "joydump: | Axis %d: %4d. |\n", i, axes[i]); in joydump_connect()
|
D | tmdc.c | 99 const signed char *axes; member 298 port->abs = model->axes; in tmdc_setup_port()
|
/linux-4.4.14/drivers/input/misc/ |
D | gpio_tilt_polled.c | 63 pdata->axes[i].axis, in gpio_tilt_polled_poll() 64 tilt_state->axes[i]); in gpio_tilt_polled_poll() 150 input_set_abs_params(input, pdata->axes[i].axis, in gpio_tilt_polled_probe() 151 pdata->axes[i].min, pdata->axes[i].max, in gpio_tilt_polled_probe() 152 pdata->axes[i].fuzz, pdata->axes[i].flat); in gpio_tilt_polled_probe()
|
/linux-4.4.14/sound/pci/au88x0/ |
D | au88x0_game.c | 56 vortex_game_cooked_read(struct gameport *gameport, int *axes, int *buttons) in vortex_game_cooked_read() argument 64 axes[i] = in vortex_game_cooked_read() 66 if (axes[i] == AXIS_RANGE) in vortex_game_cooked_read() 67 axes[i] = -1; in vortex_game_cooked_read()
|
/linux-4.4.14/include/linux/ |
D | gameport.h | 185 static inline int gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) in gameport_cooked_read() argument 188 return gameport->cooked_read(gameport, axes, buttons); in gameport_cooked_read() 193 static inline int gameport_calibrate(struct gameport *gameport, int *axes, int *max) in gameport_calibrate() argument 196 return gameport->calibrate(gameport, axes, max); in gameport_calibrate()
|
/linux-4.4.14/include/linux/input/ |
D | gpio_tilt.h | 35 int *axes; member 60 struct gpio_tilt_axis *axes; member
|
/linux-4.4.14/Documentation/laptops/ |
D | toshiba_haps.txt | 13 3. Accelerometer axes 48 3. Accelerometer axes 51 This device does not report any axes, however, to query the sensor position
|
/linux-4.4.14/Documentation/devicetree/bindings/input/ |
D | pxa27x-keypad.txt | 32 - marvell,rotary-rel-key : When rotary is used for relative axes 34 axes measurement in the device. It is a u32 value. Bit[31:16]
|
/linux-4.4.14/sound/pci/ |
D | azt3328.c | 301 u16 axes[4]; member 1759 int *axes, in snd_azf3328_gameport_cooked_read() argument 1787 for (i = 0; i < ARRAY_SIZE(chip->axes); ++i) { in snd_azf3328_gameport_cooked_read() 1792 chip->axes[i] = snd_azf3328_game_inw( in snd_azf3328_gameport_cooked_read() 1810 for (i = 0; i < ARRAY_SIZE(chip->axes); i++) { in snd_azf3328_gameport_cooked_read() 1811 axes[i] = chip->axes[i]; in snd_azf3328_gameport_cooked_read() 1812 if (axes[i] == 0xffff) in snd_azf3328_gameport_cooked_read() 1813 axes[i] = -1; in snd_azf3328_gameport_cooked_read() 1817 axes[0], axes[1], axes[2], axes[3], *buttons); in snd_azf3328_gameport_cooked_read()
|
D | cs4281.c | 1219 int *axes, int *buttons) in snd_cs4281_gameport_cooked_read() argument 1233 axes[0] = ((js1 & JSC1_Y1V_MASK) >> JSC1_Y1V_SHIFT) & 0xFFFF; in snd_cs4281_gameport_cooked_read() 1234 axes[1] = ((js1 & JSC1_X1V_MASK) >> JSC1_X1V_SHIFT) & 0xFFFF; in snd_cs4281_gameport_cooked_read() 1235 axes[2] = ((js2 & JSC2_Y2V_MASK) >> JSC2_Y2V_SHIFT) & 0xFFFF; in snd_cs4281_gameport_cooked_read() 1236 axes[3] = ((js2 & JSC2_X2V_MASK) >> JSC2_X2V_SHIFT) & 0xFFFF; in snd_cs4281_gameport_cooked_read() 1239 if (axes[jst] == 0xFFFF) axes[jst] = -1; in snd_cs4281_gameport_cooked_read()
|
/linux-4.4.14/Documentation/ABI/testing/ |
D | sysfs-bus-iio-mpu6050 | 13 aligned with each other. All axes are exactly the same.
|
/linux-4.4.14/drivers/platform/x86/ |
D | hdaps.c | 500 #define HDAPS_DMI_MATCH_INVERT(vendor, model, axes) { \ argument 503 .driver_data = (void *)axes, \
|
/linux-4.4.14/drivers/input/joystick/iforce/ |
D | iforce-ff.c | 310 u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button, in make_core() argument 321 data[2] = LO(axes) | find_button(iforce, button); in make_core()
|
/linux-4.4.14/sound/pci/cs46xx/ |
D | cs46xx_lib.c | 2741 static int snd_cs46xx_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) in snd_cs46xx_gameport_cooked_read() argument 2755 axes[0] = ((js1 & JSC1_Y1V_MASK) >> JSC1_Y1V_SHIFT) & 0xFFFF; in snd_cs46xx_gameport_cooked_read() 2756 axes[1] = ((js1 & JSC1_X1V_MASK) >> JSC1_X1V_SHIFT) & 0xFFFF; in snd_cs46xx_gameport_cooked_read() 2757 axes[2] = ((js2 & JSC2_Y2V_MASK) >> JSC2_Y2V_SHIFT) & 0xFFFF; in snd_cs46xx_gameport_cooked_read() 2758 axes[3] = ((js2 & JSC2_X2V_MASK) >> JSC2_X2V_SHIFT) & 0xFFFF; in snd_cs46xx_gameport_cooked_read() 2761 if(axes[jst]==0xFFFF) axes[jst] = -1; in snd_cs46xx_gameport_cooked_read()
|
/linux-4.4.14/Documentation/misc-devices/ |
D | lis3lv02d | 70 the accelerometer are converted into a "standard" organisation of the axes
|
/linux-4.4.14/drivers/misc/lis3lv02d/ |
D | lis3lv02d.c | 125 module_param_array_named(axes, lis3_dev.ac.as_array, axis, NULL, 0644); 126 MODULE_PARM_DESC(axes, "Axis-mapping for x,y,z directions");
|
/linux-4.4.14/sound/pci/trident/ |
D | trident_main.c | 3143 static int snd_trident_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) in snd_trident_gameport_cooked_read() argument 3154 axes[i] = inw(TRID_REG(chip, GAMEPORT_AXES + i * 2)); in snd_trident_gameport_cooked_read() 3155 if (axes[i] == 0xffff) axes[i] = -1; in snd_trident_gameport_cooked_read()
|