Add more buttons
This commit is contained in:
parent
4ead43e0f7
commit
6ee183e672
@ -155,6 +155,18 @@ int XNextEvent(Display *display, XEvent *event_return)
|
||||
case 10:
|
||||
setSwitch(PLAYER_1, BUTTON_START, event_return->type == KeyPress);
|
||||
break;
|
||||
case 24:
|
||||
setSwitch(PLAYER_1, BUTTON_1, event_return->type == KeyPress);
|
||||
break;
|
||||
case 25:
|
||||
setSwitch(PLAYER_1, BUTTON_2, event_return->type == KeyPress);
|
||||
break;
|
||||
case 26:
|
||||
setSwitch(PLAYER_1, BUTTON_3, event_return->type == KeyPress);
|
||||
break;
|
||||
case 27:
|
||||
setSwitch(PLAYER_1, BUTTON_4, event_return->type == KeyPress);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -367,12 +367,6 @@ void printStatus(RideState *state)
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* Pretend to be the ride from SEGA's Special games.
|
||||
*
|
||||
* Communicate with a SEGA Lindbergh via serial to
|
||||
* emulate the inner working of a Special ride.
|
||||
*/
|
||||
int initRideboard()
|
||||
{
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user