mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Fix axis thresholding while polling
axes were very sensitive when mapping controls.
This commit is contained in:
parent
1e7bed0a45
commit
68d6d3e173
1 changed files with 2 additions and 5 deletions
|
@ -49,11 +49,8 @@ enum class PadAxes : u8 {
|
||||||
struct GCPadStatus {
|
struct GCPadStatus {
|
||||||
u16 button{}; // Or-ed PAD_BUTTON_* and PAD_TRIGGER_* bits
|
u16 button{}; // Or-ed PAD_BUTTON_* and PAD_TRIGGER_* bits
|
||||||
|
|
||||||
std::array<u8, 6> axis_values{}; // Triggers and sticks, following indices defined in PadAxes
|
std::array<u8, 6> axis_values{}; // Triggers and sticks, following indices defined in PadAxes
|
||||||
static constexpr u8 THRESHOLD = 10;
|
static constexpr u8 THRESHOLD = 50; // Threshold for axis press for polling
|
||||||
|
|
||||||
// 256/4, at least a quarter press to count as a press. For polling mostly
|
|
||||||
static constexpr u8 TRIGGER_THRESHOLD = 64;
|
|
||||||
|
|
||||||
u8 port{};
|
u8 port{};
|
||||||
PadAxes axis{PadAxes::Undefined};
|
PadAxes axis{PadAxes::Undefined};
|
||||||
|
|
Loading…
Reference in a new issue