Home
last modified time | relevance | path

Searched refs:axes (Results 1 – 16 of 16) sorted by relevance

/linux-2.4.37.9/drivers/char/joystick/
Dlightning.c78 static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons) in l4_cooked_read() argument
96 axes[i] = inb(L4_PORT); in l4_cooked_read()
97 if (axes[i] > 252) axes[i] = -1; in l4_cooked_read()
187 static int l4_calibrate(struct gameport *gameport, int *axes, int *max) in l4_calibrate() argument
199 axes[i] = (axes[i] < 0) ? -1 : (axes[i] * cal[i]) / t; in l4_calibrate()
200 axes[i] = (axes[i] > 252) ? 252 : axes[i]; in l4_calibrate()
Da3d.c59 int axes[4]; member
130 a3d->axes[0] = ((signed char)((data[11] << 6) | (data[12] << 3) | (data[13]))) + 128; in a3d_read()
131 a3d->axes[1] = ((signed char)((data[14] << 6) | (data[15] << 3) | (data[16]))) + 128; in a3d_read()
132 a3d->axes[2] = ((signed char)((data[17] << 6) | (data[18] << 3) | (data[19]))) + 128; in a3d_read()
133 a3d->axes[3] = ((signed char)((data[20] << 6) | (data[21] << 3) | (data[22]))) + 128; in a3d_read()
191 int a3d_adc_cooked_read(struct gameport *gameport, int *axes, int *buttons) in a3d_adc_cooked_read() argument
196 axes[i] = (a3d->axes[i] < 254) ? a3d->axes[i] : -1; in a3d_adc_cooked_read()
290 int axes[] = { ABS_X, ABS_Y, ABS_THROTTLE, ABS_RUDDER }; in a3d_connect() local
308 a3d->dev.absmin[axes[i]] = 48; in a3d_connect()
309 a3d->dev.absmax[axes[i]] = a3d->dev.abs[axes[i]] * 2 - 48; in a3d_connect()
[all …]
Dspaceorb.c79 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()
Danalog.c128 int axes[4]; member
164 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons) in analog_decode() argument
171 if (axes[3] < ((initial[3] * ((i << 1) + 1)) >> 3)) { in analog_decode()
185 input_report_key(dev, analog_pads[0], axes[2] < (initial[2] >> 1)); in analog_decode()
187 input_report_key(dev, analog_pads[1], axes[3] < (initial[3] >> 1)); in analog_decode()
189 input_report_key(dev, analog_pads[2], axes[2] > (initial[2] + (initial[2] >> 1))); in analog_decode()
191 input_report_key(dev, analog_pads[3], axes[3] > (initial[3] + (initial[3] >> 1))); in analog_decode()
195 input_report_abs(dev, analog_axes[j++], axes[i]); in analog_decode()
254 port->axes[j] = (DELTA(start, time[i]) << ANALOG_FUZZ_BITS) / port->loop; in analog_cooked_read()
301 port->bads -= gameport_cooked_read(port->gameport, port->axes, &port->buttons); in analog_timer()
[all …]
Dcs461x.c186 static int cs461x_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) in cs461x_gameport_cooked_read() argument
196 axes[0] = ((js1 & JSC1_Y1V_MASK) >> JSC1_Y1V_SHIFT) & 0xFFFF; in cs461x_gameport_cooked_read()
197 axes[1] = ((js1 & JSC1_X1V_MASK) >> JSC1_X1V_SHIFT) & 0xFFFF; in cs461x_gameport_cooked_read()
198 axes[2] = ((js2 & JSC2_Y2V_MASK) >> JSC2_Y2V_SHIFT) & 0xFFFF; in cs461x_gameport_cooked_read()
199 axes[3] = ((js2 & JSC2_X2V_MASK) >> JSC2_X2V_SHIFT) & 0xFFFF; in cs461x_gameport_cooked_read()
202 if(axes[jst]==0xFFFF) axes[jst] = -1; in cs461x_gameport_cooked_read()
Dpcigame.c72 static int pcigame_cooked_read(struct gameport *gameport, int *axes, int *buttons) in pcigame_cooked_read() argument
80 axes[i] = readw(pcigame->base + pcigame->data->axes + i * pcigame->data->axsize); in pcigame_cooked_read()
81 if (axes[i] == pcigame->data->axmax) axes[i] = -1; in pcigame_cooked_read()
Dgamecon.c316 signed char axes[2]; in gc_timer() local
317 axes[0] = axes[1] = 0; in gc_timer()
320 if (data[23 - j] & s) axes[0] |= 1 << j; in gc_timer()
321 if (data[31 - j] & s) axes[1] |= 1 << j; in gc_timer()
324 input_report_abs(dev + i, ABS_X, axes[0]); in gc_timer()
325 input_report_abs(dev + i, ABS_Y, -axes[1]); in gc_timer()
Diforce.c570 u8 effect_type, u8 axes, u16 duration, u16 delay, u16 button, in make_core() argument
581 data[2] = LO(axes) | find_button(iforce, button); in make_core()
701 u8 type, axes; in iforce_upload_interactive() local
731 axes = 0x20; in iforce_upload_interactive()
738 axes = 0x40; in iforce_upload_interactive()
745 axes = 0x80; in iforce_upload_interactive()
753 axes = 0xc0; in iforce_upload_interactive()
762 type, axes, in iforce_upload_interactive()
Dtmdc.c250 signed char *axes; in tmdc_connect() member
287 tmdc->abs[j] = models[m].axes; in tmdc_connect()
/linux-2.4.37.9/include/linux/
Dgameport.h115 static __inline__ int gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) in gameport_cooked_read() argument
118 return gameport->cooked_read(gameport, axes, buttons); in gameport_cooked_read()
123 static __inline__ int gameport_calibrate(struct gameport *gameport, int *axes, int *max) in gameport_calibrate() argument
126 return gameport->calibrate(gameport, axes, max); in gameport_calibrate()
Dpci_gameport.h17 int axes; /* Axes start */ member
/linux-2.4.37.9/Documentation/input/
Dgameport-programming.txt74 int my_cooked_read(struct gameport *gameport, int *axes, int *buttons)
79 axes[i] = my_mmio[i];
154 int (*cooked_read)(struct gameport *, int *axes, int *buttons);
157 read function. It should fill axes[0..3] with four values of the joystick axes
160 int (*calibrate)(struct gameport *, int *axes, int *max);
162 Function for calibrating the ADC hardware. When called, axes[0..3] should be
166 recompute the axes[] values to match the new sensitivity or re-read them from
Djoystick-api.txt200 #define JSIOCGAXES /* get number of axes char */
207 For example, to read the number of axes
Djoystick.txt124 move the stick, and press its buttons. The axes should all be zero when the
183 For other joystick types (more/less axes, hats, and buttons) support
582 to 2 axes, and applications using it usually decode only 2 buttons, although
/linux-2.4.37.9/include/asm-mips/
Dshmiq.h134 short axes; member
/linux-2.4.37.9/include/asm-mips64/
Dshmiq.h140 short axes; member