summaryrefslogtreecommitdiff
path: root/src/core/hid/emulated_controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hid/emulated_controller.h')
-rw-r--r--src/core/hid/emulated_controller.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h
index 3ac77b2b5..b02bf35c4 100644
--- a/src/core/hid/emulated_controller.h
+++ b/src/core/hid/emulated_controller.h
@@ -411,6 +411,9 @@ public:
411 */ 411 */
412 void DeleteCallback(int key); 412 void DeleteCallback(int key);
413 413
414 /// Swaps the state of the turbo buttons
415 void TurboButtonUpdate();
416
414private: 417private:
415 /// creates input devices from params 418 /// creates input devices from params
416 void LoadDevices(); 419 void LoadDevices();
@@ -511,6 +514,8 @@ private:
511 */ 514 */
512 void TriggerOnChange(ControllerTriggerType type, bool is_service_update); 515 void TriggerOnChange(ControllerTriggerType type, bool is_service_update);
513 516
517 NpadButton GetTurboButtonMask() const;
518
514 const NpadIdType npad_id_type; 519 const NpadIdType npad_id_type;
515 NpadStyleIndex npad_type{NpadStyleIndex::None}; 520 NpadStyleIndex npad_type{NpadStyleIndex::None};
516 NpadStyleIndex original_npad_type{NpadStyleIndex::None}; 521 NpadStyleIndex original_npad_type{NpadStyleIndex::None};
@@ -520,6 +525,7 @@ private:
520 bool system_buttons_enabled{true}; 525 bool system_buttons_enabled{true};
521 f32 motion_sensitivity{0.01f}; 526 f32 motion_sensitivity{0.01f};
522 bool force_update_motion{false}; 527 bool force_update_motion{false};
528 u32 turbo_button_state{0};
523 529
524 // Temporary values to avoid doing changes while the controller is in configuring mode 530 // Temporary values to avoid doing changes while the controller is in configuring mode
525 NpadStyleIndex tmp_npad_type{NpadStyleIndex::None}; 531 NpadStyleIndex tmp_npad_type{NpadStyleIndex::None};