Lines Matching defs:axes
127 int axes[4];
182 static void analog_decode(struct analog *analog, int *axes, int *initial, int buttons)
189 if (axes[3] < ((initial[3] * ((i << 1) + 1)) >> 3)) {
203 input_report_key(dev, analog_pads[0], axes[2] < (initial[2] >> 1));
205 input_report_key(dev, analog_pads[1], axes[3] < (initial[3] >> 1));
207 input_report_key(dev, analog_pads[2], axes[2] > (initial[2] + (initial[2] >> 1)));
209 input_report_key(dev, analog_pads[3], axes[3] > (initial[3] + (initial[3] >> 1)));
213 input_report_abs(dev, analog_axes[j++], axes[i]);
273 port->axes[j] = (DELTA(start, time[i]) << ANALOG_FUZZ_BITS) / port->loop;
320 port->bads -= gameport_cooked_read(port->gameport, port->axes, &port->buttons);
338 analog_decode(port->analog + i, port->axes, port->initial, port->buttons);
466 x = port->axes[i];
467 y = (port->axes[0] + port->axes[1]) >> 1;
468 z = y - port->axes[i];
477 if (i == 2) x = port->axes[i];
509 analog_decode(analog, port->axes, port->initial, port->buttons);
568 for (i = 0; i < 4; i++) max[i] = port->axes[i] << 1;
576 gameport_calibrate(port->gameport, port->axes, max);
580 port->initial[i] = port->axes[i];
634 if (!gameport_cooked_read(gameport, port->axes, &port->buttons))
637 if (port->axes[i] != -1)