diff options
author | shinyquagsire23 <mtinc2@gmail.com> | 2018-01-16 11:14:27 +0100 |
---|---|---|
committer | shinyquagsire23 <mtinc2@gmail.com> | 2018-01-16 11:14:27 +0100 |
commit | d20a883194b02e3462b268c5257584c6354edc17 (patch) | |
tree | 9ed52a191733cd39f5268cdf2d2a1f46bf963913 /src/core/hle/service/hid/hid.h | |
parent | Merge pull request #25 from chris062689/master (diff) | |
download | yuzu-d20a883194b02e3462b268c5257584c6354edc17.tar yuzu-d20a883194b02e3462b268c5257584c6354edc17.tar.gz yuzu-d20a883194b02e3462b268c5257584c6354edc17.tar.bz2 yuzu-d20a883194b02e3462b268c5257584c6354edc17.tar.lz yuzu-d20a883194b02e3462b268c5257584c6354edc17.tar.xz yuzu-d20a883194b02e3462b268c5257584c6354edc17.tar.zst yuzu-d20a883194b02e3462b268c5257584c6354edc17.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/hid.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h index 486e64800..dbffd3a74 100644 --- a/src/core/hle/service/hid/hid.h +++ b/src/core/hle/service/hid/hid.h @@ -12,6 +12,11 @@ namespace HID { // Begin enums and output structs +constexpr u32 HID_NUM_ENTRIES = 17; +constexpr u32 HID_NUM_LAYOUTS = 7; +constexpr s32 HID_JOYSTICK_MAX = 0x8000; +constexpr s32 HID_JOYSTICK_MIN = -0x8000; + enum ControllerType : u32 { ControllerType_ProController = 1 << 0, ControllerType_Handheld = 1 << 1, @@ -215,7 +220,7 @@ struct ControllerHeader { u32 leftColorBody; u32 leftColorButtons; u32 rightColorBody; - u32 rightColorbuttons; + u32 rightColorButtons; }; static_assert(sizeof(ControllerHeader) == 0x28, "HID controller header structure has incorrect size"); |