diff options
Diffstat (limited to 'Source/Core/InputCommon')
| -rw-r--r-- | Source/Core/InputCommon/GCAdapter.cpp | 3 | ||||
| -rw-r--r-- | Source/Core/InputCommon/GCPadStatus.h | 26 |
2 files changed, 15 insertions, 14 deletions
diff --git a/Source/Core/InputCommon/GCAdapter.cpp b/Source/Core/InputCommon/GCAdapter.cpp index ab17b00e79..986480227d 100644 --- a/Source/Core/InputCommon/GCAdapter.cpp +++ b/Source/Core/InputCommon/GCAdapter.cpp @@ -408,7 +408,8 @@ static void ScanThreadFunc() #if LIBUSB_API_HAS_HOTPLUG #ifndef __FreeBSD__ s_libusb_hotplug_enabled = libusb_has_capability(LIBUSB_CAP_HAS_HOTPLUG) != 0; - // As of 28/12/2025 libusb has hotplug event capability on Linux & MacOS, but not on Windows + // As of v1.0.23-rc1 (2026/02) libusb has hotplug event capability on Linux & MacOS, but not on + // Windows #endif if (s_libusb_hotplug_enabled) { diff --git a/Source/Core/InputCommon/GCPadStatus.h b/Source/Core/InputCommon/GCPadStatus.h index b6bbf804b4..e126654b31 100644 --- a/Source/Core/InputCommon/GCPadStatus.h +++ b/Source/Core/InputCommon/GCPadStatus.h @@ -37,23 +37,23 @@ enum SwitchButton struct GCPadStatus { - u16 button = 0; // Or-ed PAD_BUTTON_* and PAD_TRIGGER_* bits - u8 stickX = 0; // 0 <= stickX <= 255 - u8 stickY = 0; // 0 <= stickY <= 255 - u8 substickX = 0; // 0 <= substickX <= 255 - u8 substickY = 0; // 0 <= substickY <= 255 - u8 triggerLeft = 0; // 0 <= triggerLeft <= 255 - u8 triggerRight = 0; // 0 <= triggerRight <= 255 - u8 analogA = 0; // 0 <= analogA <= 255 - u8 analogB = 0; // 0 <= analogB <= 255 - // Triforce - u8 switches = 0; - bool isConnected = true; - static const u8 MAIN_STICK_CENTER_X = 0x80; static const u8 MAIN_STICK_CENTER_Y = 0x80; static const u8 MAIN_STICK_RADIUS = 0x7f; static const u8 C_STICK_CENTER_X = 0x80; static const u8 C_STICK_CENTER_Y = 0x80; static const u8 C_STICK_RADIUS = 0x7f; + + u16 button = 0; // Or-ed PAD_BUTTON_* and PAD_TRIGGER_* bits + u8 stickX = MAIN_STICK_CENTER_X; // 0 <= stickX <= 255 + u8 stickY = MAIN_STICK_CENTER_Y; // 0 <= stickY <= 255 + u8 substickX = C_STICK_CENTER_X; // 0 <= substickX <= 255 + u8 substickY = C_STICK_CENTER_Y; // 0 <= substickY <= 255 + u8 triggerLeft = 0; // 0 <= triggerLeft <= 255 + u8 triggerRight = 0; // 0 <= triggerRight <= 255 + u8 analogA = 0; // 0 <= analogA <= 255 + u8 analogB = 0; // 0 <= analogB <= 255 + // Triforce + u8 switches = 0; + bool isConnected = true; }; |
