summaryrefslogtreecommitdiff
path: root/src/core/hid/emulated_controller.h
diff options
context:
space:
mode:
authorGravatar german772021-11-15 17:57:41 -0600
committerGravatar german772022-01-06 21:26:05 -0600
commit72c8a94a6cdb4d3f322fa6d4b06eab824f53dba6 (patch)
tree1be3b99cfa76a7e7c360fa467d8ea6de69a29dc8 /src/core/hid/emulated_controller.h
parentcore/hid: Add home and screenshot button support (diff)
downloadyuzu-72c8a94a6cdb4d3f322fa6d4b06eab824f53dba6.tar.gz
yuzu-72c8a94a6cdb4d3f322fa6d4b06eab824f53dba6.tar.xz
yuzu-72c8a94a6cdb4d3f322fa6d4b06eab824f53dba6.zip
yuzu: Add controller hotkeys
Diffstat (limited to 'src/core/hid/emulated_controller.h')
-rw-r--r--src/core/hid/emulated_controller.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h
index bee16a8ed..a63a83cce 100644
--- a/src/core/hid/emulated_controller.h
+++ b/src/core/hid/emulated_controller.h
@@ -200,6 +200,15 @@ public:
200 /// Returns the emulated controller into normal mode, allowing the modification of the HID state 200 /// Returns the emulated controller into normal mode, allowing the modification of the HID state
201 void DisableConfiguration(); 201 void DisableConfiguration();
202 202
203 /// Enables Home and Screenshot buttons
204 void EnableSystemButtons();
205
206 /// Disables Home and Screenshot buttons
207 void DisableSystemButtons();
208
209 /// Sets Home and Screenshot buttons to false
210 void ResetSystemButtons();
211
203 /// Returns true if the emulated controller is in configuring mode 212 /// Returns true if the emulated controller is in configuring mode
204 bool IsConfiguring() const; 213 bool IsConfiguring() const;
205 214
@@ -391,6 +400,7 @@ private:
391 NpadStyleTag supported_style_tag{NpadStyleSet::All}; 400 NpadStyleTag supported_style_tag{NpadStyleSet::All};
392 bool is_connected{false}; 401 bool is_connected{false};
393 bool is_configuring{false}; 402 bool is_configuring{false};
403 bool system_buttons_enabled{true};
394 f32 motion_sensitivity{0.01f}; 404 f32 motion_sensitivity{0.01f};
395 bool force_update_motion{false}; 405 bool force_update_motion{false};
396 406