Home | History | Annotate | Download | only in os2

Lines Matching refs:buttons

44 #define MAX_BUTTONS	8		/* 8 buttons */
52 /* Calc Button Flag for buttons A to D */
61 char buttons; // Number of buttons
62 char hats; // Number of buttons
63 char balls; // Number of buttons
67 int buttoncalc[4]; // Used for buttons 5, 6, 7 and 8.
90 unsigned int buttons;
119 Uint8 maxbut; /* Maximum number of buttons... */
199 /* Define number of buttons... 8 if 2 axes, 6 if 3 axes and 4 if 4 axes */
202 if (joycfg.buttons > maxbut) joycfg.buttons = maxbut;
203 SYS_JoyData[0].buttons = joycfg.buttons;
217 /* Initialize Buttons 5 to 8 structures */
218 if (joycfg.buttons>=5) SYS_JoyData[0].buttoncalc[0]=((axis[2]->lower+axis[3]->centre)>>1);
219 if (joycfg.buttons>=6) SYS_JoyData[0].buttoncalc[1]=((axis[3]->lower+axis[3]->centre)>>1);
220 if (joycfg.buttons>=7) SYS_JoyData[0].buttoncalc[2]=((axis[2]->upper+axis[3]->centre)>>1);
221 if (joycfg.buttons>=8) SYS_JoyData[0].buttoncalc[3]=((axis[3]->upper+axis[3]->centre)>>1);
231 /* Define Device 0 as 4 axes, 4 buttons */
234 SYS_JoyData[0].buttons = 4;
249 /* Define Device 1 as 2 axes, 2 buttons */
252 SYS_JoyData[1].buttons = 2;
268 /* Define Device 0 as 2 axes, 4 buttons */
271 SYS_JoyData[0].buttons = 4;
284 /* Define Device 1 as 2 axes, 2 buttons */
287 SYS_JoyData[0].buttons = 2;
365 joystick->nbuttons = SYS_JoyData[index].buttons;
387 int normbut; /* Number of buttons reported by joystick */
454 normbut=4; /* Number of normal buttons */
466 if ( ! joystick->buttons[i-corr] )
473 if ( joystick->buttons[i-corr] )
480 /* Joystick button E to H buttons */
622 /* Now get the number of buttons */
625 joydata->buttons = atoi(tempnumber);