diff options
author | James Rowe <jroweboy@gmail.com> | 2015-06-20 05:34:45 +0200 |
---|---|---|
committer | James Rowe <jroweboy@gmail.com> | 2015-07-28 05:41:21 +0200 |
commit | 1bc7829ee9f8bb73c92c7be672a77308ea44fe70 (patch) | |
tree | d3b17dcb11dd8ab39c92c7bac9a9dc61c5cf44ba /src/core/hle/service/hid/hid.cpp | |
parent | Merge pull request #989 from lioncash/extern (diff) | |
download | yuzu-1bc7829ee9f8bb73c92c7be672a77308ea44fe70.tar yuzu-1bc7829ee9f8bb73c92c7be672a77308ea44fe70.tar.gz yuzu-1bc7829ee9f8bb73c92c7be672a77308ea44fe70.tar.bz2 yuzu-1bc7829ee9f8bb73c92c7be672a77308ea44fe70.tar.lz yuzu-1bc7829ee9f8bb73c92c7be672a77308ea44fe70.tar.xz yuzu-1bc7829ee9f8bb73c92c7be672a77308ea44fe70.tar.zst yuzu-1bc7829ee9f8bb73c92c7be672a77308ea44fe70.zip |
Diffstat (limited to 'src/core/hle/service/hid/hid.cpp')
-rw-r--r-- | src/core/hle/service/hid/hid.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index 70caa7d80..c35b13b25 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp @@ -35,6 +35,16 @@ static Kernel::SharedPtr<Kernel::Event> event_debug_pad; static u32 next_pad_index; static u32 next_touch_index; +const std::array<Service::HID::PadState, Settings::NativeInput::NUM_INPUTS> pad_mapping = { + Service::HID::PAD_A, Service::HID::PAD_B, Service::HID::PAD_X, Service::HID::PAD_Y, + Service::HID::PAD_L, Service::HID::PAD_R, Service::HID::PAD_ZL, Service::HID::PAD_ZR, + Service::HID::PAD_START, Service::HID::PAD_SELECT, Service::HID::PAD_NONE, + Service::HID::PAD_UP, Service::HID::PAD_DOWN, Service::HID::PAD_LEFT, Service::HID::PAD_RIGHT, + Service::HID::PAD_CIRCLE_UP, Service::HID::PAD_CIRCLE_DOWN, Service::HID::PAD_CIRCLE_LEFT, Service::HID::PAD_CIRCLE_RIGHT, + Service::HID::PAD_C_UP, Service::HID::PAD_C_DOWN, Service::HID::PAD_C_LEFT, Service::HID::PAD_C_RIGHT +}; + + // TODO(peachum): // Add a method for setting analog input from joystick device for the circle Pad. // |