diff options
Diffstat (limited to 'src/input_common/gcadapter/gc_adapter.h')
| -rw-r--r-- | src/input_common/gcadapter/gc_adapter.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input_common/gcadapter/gc_adapter.h b/src/input_common/gcadapter/gc_adapter.h index 161d522ac..0ea6263eb 100644 --- a/src/input_common/gcadapter/gc_adapter.h +++ b/src/input_common/gcadapter/gc_adapter.h | |||
| @@ -63,9 +63,11 @@ struct GCPadStatus { | |||
| 63 | static constexpr u8 C_STICK_CENTER_X = 0x80; | 63 | static constexpr u8 C_STICK_CENTER_X = 0x80; |
| 64 | static constexpr u8 C_STICK_CENTER_Y = 0x80; | 64 | static constexpr u8 C_STICK_CENTER_Y = 0x80; |
| 65 | static constexpr u8 C_STICK_RADIUS = 0x7f; | 65 | static constexpr u8 C_STICK_RADIUS = 0x7f; |
| 66 | static constexpr u8 TRIGGER_CENTER = 20; | ||
| 67 | static constexpr u8 THRESHOLD = 10; | 66 | static constexpr u8 THRESHOLD = 10; |
| 68 | 67 | ||
| 68 | // 256/4, at least a quarter press to count as a press. For polling mostly | ||
| 69 | static constexpr u8 TRIGGER_THRESHOLD = 64; | ||
| 70 | |||
| 69 | u8 port{}; | 71 | u8 port{}; |
| 70 | PadAxes axis{PadAxes::Undefined}; | 72 | PadAxes axis{PadAxes::Undefined}; |
| 71 | u8 axis_value{255}; | 73 | u8 axis_value{255}; |