Searched refs:axes (Results 1 - 15 of 15) sorted by relevance

/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/input/gameport/
H A Dlightning.c79 static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
97 axes[i] = inb(L4_PORT);
98 if (axes[i] > 252) axes[i] = -1;
199 static int l4_calibrate(struct gameport *gameport, int *axes, int *max) argument
211 axes[i] = (axes[i] < 0) ? -1 : (axes[i] * cal[i]) / t;
212 axes[i] = (axes[
[all...]
H A Dfm801-gp.c45 static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
51 axes[0] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5);
53 axes[1] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5);
56 axes[2] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5);
58 axes[3] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5);
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/input/joystick/
H A Dspaceorb.c82 int axes[6]; local
101 axes[0] = ( data[2] << 3) | (data[ 3] >> 4);
102 axes[1] = ((data[3] & 0x0f) << 6) | (data[ 4] >> 1);
103 axes[2] = ((data[4] & 0x01) << 9) | (data[ 5] << 2) | (data[4] >> 5);
104 axes[3] = ((data[6] & 0x1f) << 5) | (data[ 7] >> 2);
105 axes[4] = ((data[7] & 0x03) << 8) | (data[ 8] << 1) | (data[7] >> 6);
106 axes[5] = ((data[9] & 0x3f) << 4) | (data[10] >> 3);
108 input_report_abs(dev, spaceorb_axes[i], axes[i] - ((axes[i] & 0x200) ? 1024 : 0));
H A Da3d.c61 int axes[4]; member in struct:a3d
135 a3d->axes[0] = ((signed char)((data[11] << 6) | (data[12] << 3) | (data[13]))) + 128;
136 a3d->axes[1] = ((signed char)((data[14] << 6) | (data[15] << 3) | (data[16]))) + 128;
137 a3d->axes[2] = ((signed char)((data[17] << 6) | (data[18] << 3) | (data[19]))) + 128;
138 a3d->axes[3] = ((signed char)((data[20] << 6) | (data[21] << 3) | (data[22]))) + 128;
200 static int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
206 axes[i] = (a3d->axes[i] < 254) ? a3d->axes[i] : -1;
325 int axes[] local
[all...]
H A Djoydump.c56 int axes[4], buttons; local
76 gameport_cooked_read(gameport, axes, &buttons);
79 printk(KERN_INFO "joydump: | Axis %d: %4d. |\n", i, axes[i]);
H A Danalog.c130 int axes[4]; member in struct:analog_port
181 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) argument
188 if (axes[3] < ((initial[3] * ((i << 1) + 1)) >> 3)) {
202 input_report_key(dev, analog_pads[0], axes[2] < (initial[2] >> 1));
204 input_report_key(dev, analog_pads[1], axes[3] < (initial[3] >> 1));
206 input_report_key(dev, analog_pads[2], axes[2] > (initial[2] + (initial[2] >> 1)));
208 input_report_key(dev, analog_pads[3], axes[3] > (initial[3] + (initial[3] >> 1)));
212 input_report_abs(dev, analog_axes[j++], axes[i]);
272 port->axes[j] = (DELTA(start, time[i]) << ANALOG_FUZZ_BITS) / port->loop;
319 port->bads -= gameport_cooked_read(port->gameport, port->axes,
[all...]
H A Dgamecon.c112 /* Reading the main axes of any N64 pad is known to fail if the corresponding bit */
164 signed char axes[2]; local
180 axes[0] = axes[1] = 0;
184 axes[0] |= 1 << j;
186 axes[1] |= 1 << j;
189 input_report_abs(dev, ABS_X, axes[0]);
190 input_report_abs(dev, ABS_Y, -axes[1]);
528 /* for some reason if the extra axes are left unset they drift */
H A Dtmdc.c102 const signed char *axes; member in struct:tmdc_model
290 port->abs = model->axes;
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/sound/pci/au88x0/
H A Dau88x0_game.c58 vortex_game_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
66 axes[i] =
68 if (axes[i] == AXIS_RANGE)
69 axes[i] = -1;
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/linux/
H A Dgameport.h193 static inline int gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
196 return gameport->cooked_read(gameport, axes, buttons);
201 static inline int gameport_calibrate(struct gameport *gameport, int *axes, int *max) argument
204 return gameport->calibrate(gameport, axes, max);
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/sound/pci/
H A Dcs4281.c1230 int *axes, int *buttons)
1243 axes[0] = ((js1 & JSC1_Y1V_MASK) >> JSC1_Y1V_SHIFT) & 0xFFFF;
1244 axes[1] = ((js1 & JSC1_X1V_MASK) >> JSC1_X1V_SHIFT) & 0xFFFF;
1245 axes[2] = ((js2 & JSC2_Y2V_MASK) >> JSC2_Y2V_SHIFT) & 0xFFFF;
1246 axes[3] = ((js2 & JSC2_X2V_MASK) >> JSC2_X2V_SHIFT) & 0xFFFF;
1249 if (axes[jst] == 0xFFFF) axes[jst] = -1;
1229 snd_cs4281_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/input/joystick/iforce/
H A Diforce-ff.c302 u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button,
313 data[2] = LO(axes) | find_button(iforce, button);
301 make_core(struct iforce* iforce, u16 id, u16 mod_id1, u16 mod_id2, u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button, u16 interval, u16 direction) argument
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/sound/pci/cs46xx/
H A Dcs46xx_lib.c2634 static int snd_cs46xx_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
2647 axes[0] = ((js1 & JSC1_Y1V_MASK) >> JSC1_Y1V_SHIFT) & 0xFFFF;
2648 axes[1] = ((js1 & JSC1_X1V_MASK) >> JSC1_X1V_SHIFT) & 0xFFFF;
2649 axes[2] = ((js2 & JSC2_Y2V_MASK) >> JSC2_Y2V_SHIFT) & 0xFFFF;
2650 axes[3] = ((js2 & JSC2_X2V_MASK) >> JSC2_X2V_SHIFT) & 0xFFFF;
2653 if(axes[jst]==0xFFFF) axes[jst] = -1;
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/sound/oss/
H A Dtrident.c4271 int *axes, int *buttons)
4279 axes[i] = inw(TRID_REG(card, T4D_GAME_AXD) + i * sizeof (u16));
4280 if (axes[i] == 0xffff)
4281 axes[i] = -1;
4270 trident_game_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/sound/pci/trident/
H A Dtrident_main.c3089 static int snd_trident_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) argument
3099 axes[i] = inw(TRID_REG(chip, GAMEPORT_AXES + i * 2));
3100 if (axes[i] == 0xffff) axes[i] = -1;

Completed in 140 milliseconds