summaryrefslogtreecommitdiff
path: root/src/core/hid/emulated_controller.h
diff options
context:
space:
mode:
authorGravatar german772021-12-25 19:00:11 -0600
committerGravatar german772022-01-06 21:11:27 -0600
commitb94e947793dcb53e9e00ef8bf587b2f689d38d41 (patch)
treef711fb7056365911b83dd859ddb5a2971af1924c /src/core/hid/emulated_controller.h
parentMerge pull request #7673 from german77/no_return (diff)
downloadyuzu-b94e947793dcb53e9e00ef8bf587b2f689d38d41.tar.gz
yuzu-b94e947793dcb53e9e00ef8bf587b2f689d38d41.tar.xz
yuzu-b94e947793dcb53e9e00ef8bf587b2f689d38d41.zip
core/hid: Add home and screenshot button support
Diffstat (limited to 'src/core/hid/emulated_controller.h')
-rw-r--r--src/core/hid/emulated_controller.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h
index c0994ab4d..bee16a8ed 100644
--- a/src/core/hid/emulated_controller.h
+++ b/src/core/hid/emulated_controller.h
@@ -101,6 +101,8 @@ struct ControllerStatus {
101 VibrationValues vibration_values{}; 101 VibrationValues vibration_values{};
102 102
103 // Data for HID serices 103 // Data for HID serices
104 HomeButtonState home_button_state{};
105 CaptureButtonState capture_button_state{};
104 NpadButtonState npad_button_state{}; 106 NpadButtonState npad_button_state{};
105 DebugPadButton debug_pad_button_state{}; 107 DebugPadButton debug_pad_button_state{};
106 AnalogSticks analog_stick_state{}; 108 AnalogSticks analog_stick_state{};
@@ -261,7 +263,13 @@ public:
261 /// Returns the latest battery status from the controller with parameters 263 /// Returns the latest battery status from the controller with parameters
262 BatteryValues GetBatteryValues() const; 264 BatteryValues GetBatteryValues() const;
263 265
264 /// Returns the latest status of button input for the npad service 266 /// Returns the latest status of button input for the hid::HomeButton service
267 HomeButtonState GetHomeButtons() const;
268
269 /// Returns the latest status of button input for the hid::CaptureButton service
270 CaptureButtonState GetCaptureButtons() const;
271
272 /// Returns the latest status of button input for the hid::Npad service
265 NpadButtonState GetNpadButtons() const; 273 NpadButtonState GetNpadButtons() const;
266 274
267 /// Returns the latest status of button input for the debug pad service 275 /// Returns the latest status of button input for the debug pad service