diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-01-02 23:02:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-02 23:02:12 +0100 |
| commit | f13f54e3db532fe308dfaee5a94bcc50fbd1e175 (patch) | |
| tree | b743deb84bd80fa4ac59031933f5b65544ffe0b2 /Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h | |
| parent | 6d95aa5c129ca603db3a5d6e76ff07ed3d9efffe (diff) | |
| parent | 288fa635f92760f71f638a5a411e63fafe9cb44e (diff) | |
Merge pull request #11363 from TheConfuZzledDude/xinput2-scroll-axis
InputCommon/XInput2: Added an axis output for the scroll wheel
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h index b07f6325c7..ff2c787b1d 100644 --- a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h +++ b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h @@ -28,8 +28,8 @@ private: std::array<char, 32> keyboard; unsigned int buttons; Common::Vec2 cursor; - Common::Vec2 axis; - Common::Vec2 relative_mouse; + Common::Vec3 axis; + Common::Vec3 relative_mouse; }; class Key : public Input @@ -113,7 +113,8 @@ private: public: void UpdateInput() override; - KeyboardMouse(Window window, int opcode, int pointer_deviceid, int keyboard_deviceid); + KeyboardMouse(Window window, int opcode, int pointer_deviceid, int keyboard_deviceid, + double scroll_increment); ~KeyboardMouse(); std::string GetName() const override; @@ -126,6 +127,7 @@ private: const int xi_opcode; const int pointer_deviceid; const int keyboard_deviceid; + const double scroll_increment; std::string name; }; } // namespace ciface::XInput2 |
