1
0
mirror of synced 2025-01-18 17:04:06 +01:00

Add more buttons

This commit is contained in:
Bobby Dilley 2022-07-20 21:02:28 +01:00
parent 4ead43e0f7
commit 6ee183e672
2 changed files with 12 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;