aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/Hid/HidControllerButtons.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-03-02 22:49:17 -0300
committerGitHub <noreply@github.com>2018-03-02 22:49:17 -0300
commitc14c69a10c936f485a4420c93499bd4c3efa8b09 (patch)
treec83af4bfc35dc65e229c6185fd54d961fb8bb768 /Ryujinx.Core/Hid/HidControllerButtons.cs
parentefef605b260119642fa023c8488fb3ff4501cafd (diff)
Refactor HID, fix issues (#48)
* Refactor HID, fix issues * Fix on touch screen code with wrong offset * Don't use magic values * Replace more magic values with actual variables, fix touch screen coordinates on different window sizes
Diffstat (limited to 'Ryujinx.Core/Hid/HidControllerButtons.cs')
-rw-r--r--Ryujinx.Core/Hid/HidControllerButtons.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/Ryujinx.Core/Hid/HidControllerButtons.cs b/Ryujinx.Core/Hid/HidControllerButtons.cs
new file mode 100644
index 00000000..65eb3f82
--- /dev/null
+++ b/Ryujinx.Core/Hid/HidControllerButtons.cs
@@ -0,0 +1,35 @@
+using System;
+
+namespace Ryujinx.Core.Input
+{
+ [Flags]
+ public enum HidControllerButtons
+ {
+ KEY_A = (1 << 0),
+ KEY_B = (1 << 1),
+ KEY_X = (1 << 2),
+ KEY_Y = (1 << 3),
+ KEY_LSTICK = (1 << 4),
+ KEY_RSTICK = (1 << 5),
+ KEY_L = (1 << 6),
+ KEY_R = (1 << 7),
+ KEY_ZL = (1 << 8),
+ KEY_ZR = (1 << 9),
+ KEY_PLUS = (1 << 10),
+ KEY_MINUS = (1 << 11),
+ KEY_DLEFT = (1 << 12),
+ KEY_DUP = (1 << 13),
+ KEY_DRIGHT = (1 << 14),
+ KEY_DDOWN = (1 << 15),
+ KEY_LSTICK_LEFT = (1 << 16),
+ KEY_LSTICK_UP = (1 << 17),
+ KEY_LSTICK_RIGHT = (1 << 18),
+ KEY_LSTICK_DOWN = (1 << 19),
+ KEY_RSTICK_LEFT = (1 << 20),
+ KEY_RSTICK_UP = (1 << 21),
+ KEY_RSTICK_RIGHT = (1 << 22),
+ KEY_RSTICK_DOWN = (1 << 23),
+ KEY_SL = (1 << 24),
+ KEY_SR = (1 << 25)
+ }
+} \ No newline at end of file