diff options
Diffstat (limited to '')
| -rw-r--r-- | src/input_common/gcadapter/gc_adapter.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/input_common/gcadapter/gc_adapter.h b/src/input_common/gcadapter/gc_adapter.h index 869eafeec..bed81915c 100644 --- a/src/input_common/gcadapter/gc_adapter.h +++ b/src/input_common/gcadapter/gc_adapter.h | |||
| @@ -49,11 +49,8 @@ enum class PadAxes : u8 { | |||
| 49 | struct GCPadStatus { | 49 | struct GCPadStatus { |
| 50 | u16 button{}; // Or-ed PAD_BUTTON_* and PAD_TRIGGER_* bits | 50 | u16 button{}; // Or-ed PAD_BUTTON_* and PAD_TRIGGER_* bits |
| 51 | 51 | ||
| 52 | std::array<u8, 6> axis_values{}; // Triggers and sticks, following indices defined in PadAxes | 52 | std::array<u8, 6> axis_values{}; // Triggers and sticks, following indices defined in PadAxes |
| 53 | static constexpr u8 THRESHOLD = 10; | 53 | static constexpr u8 THRESHOLD = 50; // Threshold for axis press for polling |
| 54 | |||
| 55 | // 256/4, at least a quarter press to count as a press. For polling mostly | ||
| 56 | static constexpr u8 TRIGGER_THRESHOLD = 64; | ||
| 57 | 54 | ||
| 58 | u8 port{}; | 55 | u8 port{}; |
| 59 | PadAxes axis{PadAxes::Undefined}; | 56 | PadAxes axis{PadAxes::Undefined}; |