From 6ee183e67270ae2599ce1d96736210e80c6d5d40 Mon Sep 17 00:00:00 2001 From: Bobby Dilley Date: Wed, 20 Jul 2022 21:02:28 +0100 Subject: [PATCH] Add more buttons --- src/lindbergh/graphics.c | 12 ++++++++++++ src/lindbergh/rideboard.c | 6 ------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/lindbergh/graphics.c b/src/lindbergh/graphics.c index cfd8691..d622852 100644 --- a/src/lindbergh/graphics.c +++ b/src/lindbergh/graphics.c @@ -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; } diff --git a/src/lindbergh/rideboard.c b/src/lindbergh/rideboard.c index f54d0d4..4600acd 100644 --- a/src/lindbergh/rideboard.c +++ b/src/lindbergh/rideboard.c @@ -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;