From 265a6129e4a3abefdbc7e4a857f1ae28dd17c3b2 Mon Sep 17 00:00:00 2001 From: Daniel Rong Date: Thu, 18 Aug 2022 00:50:24 -0700 Subject: [PATCH] fix some build errors and broken symlink --- images/RSTICK.svg | 2 +- scc/drivers/remotepad_controller.c | 2 +- scc/drivers/scc_future.h | 10 ++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/images/RSTICK.svg b/images/RSTICK.svg index a539ba212..2d7f2165c 120000 --- a/images/RSTICK.svg +++ b/images/RSTICK.svg @@ -1 +1 @@ -button-images/LSTICK.bw.svg \ No newline at end of file +button-images/RSTICK.bw.svg \ No newline at end of file diff --git a/scc/drivers/remotepad_controller.c b/scc/drivers/remotepad_controller.c index 2233e27de..67c033036 100644 --- a/scc/drivers/remotepad_controller.c +++ b/scc/drivers/remotepad_controller.c @@ -28,7 +28,7 @@ inline static SCButton libretro_button_to_sc_button(int id) { case RETRO_DEVICE_ID_JOYPAD_L2: return B_LT; case RETRO_DEVICE_ID_JOYPAD_R2: return B_RT; case RETRO_DEVICE_ID_JOYPAD_L3: return B_STICKPRESS; - case RETRO_DEVICE_ID_JOYPAD_R3: return B_RPAD; + case RETRO_DEVICE_ID_JOYPAD_R3: return B_RPADPRESS; default: return 0; } diff --git a/scc/drivers/scc_future.h b/scc/drivers/scc_future.h index 0ec856630..7f7ae2de1 100644 --- a/scc/drivers/scc_future.h +++ b/scc/drivers/scc_future.h @@ -40,6 +40,16 @@ typedef enum SCButton { _SCButton_padding = 0xFFFFFFFF // uint32_t } SCButton; +struct GyroInput { + GyroValue gpitch; + GyroValue groll; + GyroValue gyaw; + GyroValue q1; + GyroValue q2; + GyroValue q3; + GyroValue q4; +}; + struct ControllerInput { SCButton buttons; union {