aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/Input/HidControllerButtons.cs
diff options
context:
space:
mode:
authoremmauss <emmausssss@gmail.com>2018-11-20 02:01:36 +0200
committerAc_K <Acoustik666@gmail.com>2018-11-20 01:01:36 +0100
commitdc02ac08caa84456e8b280a3347ac8907b5249ff (patch)
treeef71cf05cba18da65c930328f955352f4859e67f /Ryujinx.HLE/Input/HidControllerButtons.cs
parent0c36835f6de563cd6b4a4c82cac25fbcfb0a6231 (diff)
Support other switch controller types (#487)
* Make controllers modular, support changing controller type * return readable events * signal hid events * fix style
Diffstat (limited to 'Ryujinx.HLE/Input/HidControllerButtons.cs')
-rw-r--r--Ryujinx.HLE/Input/HidControllerButtons.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/Ryujinx.HLE/Input/HidControllerButtons.cs b/Ryujinx.HLE/Input/HidControllerButtons.cs
new file mode 100644
index 00000000..07a3a118
--- /dev/null
+++ b/Ryujinx.HLE/Input/HidControllerButtons.cs
@@ -0,0 +1,35 @@
+using System;
+
+namespace Ryujinx.HLE.Input
+{
+ [Flags]
+ public enum HidControllerButtons
+ {
+ A = 1 << 0,
+ B = 1 << 1,
+ X = 1 << 2,
+ Y = 1 << 3,
+ StickLeft = 1 << 4,
+ StickRight = 1 << 5,
+ L = 1 << 6,
+ R = 1 << 7,
+ Zl = 1 << 8,
+ Zr = 1 << 9,
+ Plus = 1 << 10,
+ Minus = 1 << 11,
+ DpadLeft = 1 << 12,
+ DpadUp = 1 << 13,
+ DPadRight = 1 << 14,
+ DpadDown = 1 << 15,
+ LStickLeft = 1 << 16,
+ LStickUp = 1 << 17,
+ LStickRight = 1 << 18,
+ LStickDown = 1 << 19,
+ RStickLeft = 1 << 20,
+ RStickUp = 1 << 21,
+ RStickRight = 1 << 22,
+ RStickDown = 1 << 23,
+ Sl = 1 << 24,
+ Sr = 1 << 25
+ }
+} \ No newline at end of file