mirror of
https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
synced 2025-12-16 16:42:41 +00:00
Fix for always firing triggers on some controllers, trigger threshold more universal
This commit is contained in:
@@ -63,9 +63,11 @@ struct GCPadStatus {
|
||||
static constexpr u8 C_STICK_CENTER_X = 0x80;
|
||||
static constexpr u8 C_STICK_CENTER_Y = 0x80;
|
||||
static constexpr u8 C_STICK_RADIUS = 0x7f;
|
||||
static constexpr u8 TRIGGER_CENTER = 20;
|
||||
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;
|
||||
|
||||
u8 port{};
|
||||
PadAxes axis{PadAxes::Undefined};
|
||||
u8 axis_value{255};
|
||||
|
||||
Reference in New Issue
Block a user