summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/xpad.h
diff options
context:
space:
mode:
authorgerman <german@thesoftwareartisans.com>2021-01-11 07:03:17 +0100
committergerman <german@thesoftwareartisans.com>2021-02-04 03:17:08 +0100
commit8019b2b9b5265647dbadc45f60a12e4bbfefbd77 (patch)
tree106629207499feaa0efe1ed93105264d8bb1714b /src/core/hle/service/hid/controllers/xpad.h
parentFix npad struct to match switchbrew (diff)
downloadyuzu-8019b2b9b5265647dbadc45f60a12e4bbfefbd77.tar
yuzu-8019b2b9b5265647dbadc45f60a12e4bbfefbd77.tar.gz
yuzu-8019b2b9b5265647dbadc45f60a12e4bbfefbd77.tar.bz2
yuzu-8019b2b9b5265647dbadc45f60a12e4bbfefbd77.tar.lz
yuzu-8019b2b9b5265647dbadc45f60a12e4bbfefbd77.tar.xz
yuzu-8019b2b9b5265647dbadc45f60a12e4bbfefbd77.tar.zst
yuzu-8019b2b9b5265647dbadc45f60a12e4bbfefbd77.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/hid/controllers/xpad.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/hle/service/hid/controllers/xpad.h b/src/core/hle/service/hid/controllers/xpad.h
index d91cf62a2..5b59961bd 100644
--- a/src/core/hle/service/hid/controllers/xpad.h
+++ b/src/core/hle/service/hid/controllers/xpad.h
@@ -31,13 +31,13 @@ public:
private:
struct Attributes {
union {
- s32_le raw{};
- BitField<0, 1, u32> IsConnected;
- BitField<1, 1, u32> IsWired;
- BitField<2, 1, u32> IsLeftConnected;
- BitField<3, 1, u32> IsLeftWired;
- BitField<4, 1, u32> IsRightConnected;
- BitField<5, 1, u32> IsRightWired;
+ u32_le raw{};
+ BitField<0, 1, u32> is_connected;
+ BitField<1, 1, u32> is_wired;
+ BitField<2, 1, u32> is_left_connected;
+ BitField<3, 1, u32> is_left_wired;
+ BitField<4, 1, u32> is_right_connected;
+ BitField<5, 1, u32> is_right_wired;
};
};
static_assert(sizeof(Attributes) == 4, "Attributes is an invalid size");