diff options
author | ameerj <aj662@drexel.edu> | 2020-07-19 17:49:26 +0200 |
---|---|---|
committer | ameerj <aj662@drexel.edu> | 2020-07-19 17:49:26 +0200 |
commit | 68d6d3e1738f022aa0915d70b8d0c1eb567d0ceb (patch) | |
tree | 47c29ee5f1c7f9f1de0c6ceea91ea323bea3432a | |
parent | std::size_t where appropriate, make error message more clear if can't read (diff) | |
download | yuzu-68d6d3e1738f022aa0915d70b8d0c1eb567d0ceb.tar yuzu-68d6d3e1738f022aa0915d70b8d0c1eb567d0ceb.tar.gz yuzu-68d6d3e1738f022aa0915d70b8d0c1eb567d0ceb.tar.bz2 yuzu-68d6d3e1738f022aa0915d70b8d0c1eb567d0ceb.tar.lz yuzu-68d6d3e1738f022aa0915d70b8d0c1eb567d0ceb.tar.xz yuzu-68d6d3e1738f022aa0915d70b8d0c1eb567d0ceb.tar.zst yuzu-68d6d3e1738f022aa0915d70b8d0c1eb567d0ceb.zip |
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 { struct GCPadStatus { u16 button{}; // Or-ed PAD_BUTTON_* and PAD_TRIGGER_* bits - std::array<u8, 6> axis_values{}; // Triggers and sticks, following indices defined in PadAxes - static constexpr u8 THRESHOLD = 10; - - // 256/4, at least a quarter press to count as a press. For polling mostly - static constexpr u8 TRIGGER_THRESHOLD = 64; + std::array<u8, 6> axis_values{}; // Triggers and sticks, following indices defined in PadAxes + static constexpr u8 THRESHOLD = 50; // Threshold for axis press for polling u8 port{}; PadAxes axis{PadAxes::Undefined}; |