summaryrefslogtreecommitdiff
path: root/src/core/hid/emulated_controller.h
diff options
context:
space:
mode:
authorGravatar bunnei2023-02-12 00:19:22 -0800
committerGravatar GitHub2023-02-12 00:19:22 -0800
commit8b74047b1b4eac10c6152a18920d0a8e1861fecd (patch)
tree74a64e8a680771cede461bb0945fa4242deae2ed /src/core/hid/emulated_controller.h
parentMerge pull request #9746 from ameerj/ogl-msaa-texcache (diff)
parentcore: hid: Use gyro thresholds modes set by the game (diff)
downloadyuzu-8b74047b1b4eac10c6152a18920d0a8e1861fecd.tar.gz
yuzu-8b74047b1b4eac10c6152a18920d0a8e1861fecd.tar.xz
yuzu-8b74047b1b4eac10c6152a18920d0a8e1861fecd.zip
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.h5
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:
398 /// Asks the output device to change the player led pattern 398 /// Asks the output device to change the player led pattern
399 void SetLedPattern(); 399 void SetLedPattern();
400 400
401 /// Changes sensitivity of the motion sensor
402 void SetGyroscopeZeroDriftMode(GyroscopeZeroDriftMode mode);
403
401 /** 404 /**
402 * Adds a callback to the list of events 405 * Adds a callback to the list of events
403 * @param update_callback A ConsoleUpdateCallback that will be triggered 406 * @param update_callback A ConsoleUpdateCallback that will be triggered
@@ -523,7 +526,7 @@ private:
523 bool is_connected{false}; 526 bool is_connected{false};
524 bool is_configuring{false}; 527 bool is_configuring{false};
525 bool system_buttons_enabled{true}; 528 bool system_buttons_enabled{true};
526 f32 motion_sensitivity{0.01f}; 529 f32 motion_sensitivity{Core::HID::MotionInput::IsAtRestStandard};
527 bool force_update_motion{false}; 530 bool force_update_motion{false};
528 u32 turbo_button_state{0}; 531 u32 turbo_button_state{0};
529 532