diff options
| author | bunnei <bunneidev@gmail.com> | 2023-02-12 00:19:22 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-12 00:19:22 -0800 |
| commit | 8b74047b1b4eac10c6152a18920d0a8e1861fecd (patch) | |
| tree | 74a64e8a680771cede461bb0945fa4242deae2ed /src/core/hid/emulated_controller.h | |
| parent | f70fcdb873f768403af37622fbc195433b3605ef (diff) | |
| parent | 5e9fa5def5cf5ae3f00cc354a0b1363123dc6930 (diff) | |
Merge pull request #9757 from german77/gyro
core: hid: Use gyro thresholds modes set by the game
Diffstat (limited to 'src/core/hid/emulated_controller.h')
| -rw-r--r-- | src/core/hid/emulated_controller.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index b02bf35c4..a9da465a2 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h @@ -398,6 +398,9 @@ public: /// Asks the output device to change the player led pattern void SetLedPattern(); + /// Changes sensitivity of the motion sensor + void SetGyroscopeZeroDriftMode(GyroscopeZeroDriftMode mode); + /** * Adds a callback to the list of events * @param update_callback A ConsoleUpdateCallback that will be triggered @@ -523,7 +526,7 @@ private: bool is_connected{false}; bool is_configuring{false}; bool system_buttons_enabled{true}; - f32 motion_sensitivity{0.01f}; + f32 motion_sensitivity{Core::HID::MotionInput::IsAtRestStandard}; bool force_update_motion{false}; u32 turbo_button_state{0}; |
