diff options
| author | 2023-05-07 16:38:41 -0600 | |
|---|---|---|
| committer | 2023-05-07 17:01:57 -0600 | |
| commit | cf023aa8ec93193d4827b3034c9e7d35a0edfc2a (patch) | |
| tree | 66c90375ec6d8a8f1bae96e8c6fc9194b8407756 /src/core/hid/emulated_controller.h | |
| parent | Merge pull request #10097 from german77/nfp_full (diff) | |
| download | yuzu-cf023aa8ec93193d4827b3034c9e7d35a0edfc2a.tar.gz yuzu-cf023aa8ec93193d4827b3034c9e7d35a0edfc2a.tar.xz yuzu-cf023aa8ec93193d4827b3034c9e7d35a0edfc2a.zip | |
core: hid: Update motion on a better place
Diffstat (limited to 'src/core/hid/emulated_controller.h')
| -rw-r--r-- | src/core/hid/emulated_controller.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index 6e01f4e12..fa4ad7fae 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h | |||
| @@ -415,8 +415,8 @@ public: | |||
| 415 | */ | 415 | */ |
| 416 | void DeleteCallback(int key); | 416 | void DeleteCallback(int key); |
| 417 | 417 | ||
| 418 | /// Swaps the state of the turbo buttons | 418 | /// Swaps the state of the turbo buttons and updates motion input |
| 419 | void TurboButtonUpdate(); | 419 | void StatusUpdate(); |
| 420 | 420 | ||
| 421 | private: | 421 | private: |
| 422 | /// creates input devices from params | 422 | /// creates input devices from params |
| @@ -528,7 +528,6 @@ private: | |||
| 528 | bool is_configuring{false}; | 528 | bool is_configuring{false}; |
| 529 | bool system_buttons_enabled{true}; | 529 | bool system_buttons_enabled{true}; |
| 530 | f32 motion_sensitivity{Core::HID::MotionInput::IsAtRestStandard}; | 530 | f32 motion_sensitivity{Core::HID::MotionInput::IsAtRestStandard}; |
| 531 | bool force_update_motion{false}; | ||
| 532 | u32 turbo_button_state{0}; | 531 | u32 turbo_button_state{0}; |
| 533 | 532 | ||
| 534 | // Temporary values to avoid doing changes while the controller is in configuring mode | 533 | // Temporary values to avoid doing changes while the controller is in configuring mode |