summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid.h
diff options
context:
space:
mode:
authorKevin Hartman <kevin@hart.mn>2014-09-03 07:24:03 +0200
committerKevin Hartman <kevin@hart.mn>2014-09-12 07:43:42 +0200
commitbb7ddede159d820b6f8b49caf0758940903ece3b (patch)
treec9304b3f845ef3615a7599adbd3b6189d57a5191 /src/core/hle/service/hid.h
parentMerge pull request #99 from archshift/ext-check (diff)
downloadyuzu-bb7ddede159d820b6f8b49caf0758940903ece3b.tar
yuzu-bb7ddede159d820b6f8b49caf0758940903ece3b.tar.gz
yuzu-bb7ddede159d820b6f8b49caf0758940903ece3b.tar.bz2
yuzu-bb7ddede159d820b6f8b49caf0758940903ece3b.tar.lz
yuzu-bb7ddede159d820b6f8b49caf0758940903ece3b.tar.xz
yuzu-bb7ddede159d820b6f8b49caf0758940903ece3b.tar.zst
yuzu-bb7ddede159d820b6f8b49caf0758940903ece3b.zip
Diffstat (limited to 'src/core/hle/service/hid.h')
-rw-r--r--src/core/hle/service/hid.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/core/hle/service/hid.h b/src/core/hle/service/hid.h
index b17fcfa86..6ddf2f80f 100644
--- a/src/core/hle/service/hid.h
+++ b/src/core/hle/service/hid.h
@@ -5,6 +5,7 @@
#pragma once
#include "core/hle/service/service.h"
+#include "common/bit_field.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
// Namespace HID_User
@@ -14,6 +15,30 @@
namespace HID_User {
+struct PADState {
+ union {
+ u32 hex;
+
+ BitField<0, 1, u32> A;
+ BitField<1, 1, u32> B;
+ BitField<2, 1, u32> Select;
+ BitField<3, 1, u32> Start;
+ BitField<4, 1, u32> Right;
+ BitField<5, 1, u32> Left;
+ BitField<6, 1, u32> Up;
+ BitField<7, 1, u32> Down;
+ BitField<8, 1, u32> R;
+ BitField<9, 1, u32> L;
+ BitField<10, 1, u32> X;
+ BitField<11, 1, u32> Y;
+
+ BitField<28, 1, u32> CircleRight;
+ BitField<29, 1, u32> CircleLeft;
+ BitField<30, 1, u32> CircleUp;
+ BitField<31, 1, u32> CircleDown;
+ };
+};
+
class Interface : public Service::Interface {
public: