diff options
| author | TheConfuZzledDude <theconfuzzleddude@gmail.com> | 2022-12-22 20:21:17 +0000 |
|---|---|---|
| committer | TheConfuZzledDude <theconfuzzleddude@gmail.com> | 2022-12-23 22:10:28 +0000 |
| commit | c3018fdc3b186c1da0d76aa7d2870623544187c1 (patch) | |
| tree | a9a8fb99452e10d3cabbf81eb69f7770b6538c29 /Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h | |
| parent | d853da3b0b6546650d030daa706ba5a68057ad19 (diff) | |
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 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h index b07f6325c7..3087a7a260 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,7 @@ 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 +126,7 @@ private: const int xi_opcode; const int pointer_deviceid; const int keyboard_deviceid; + const double scroll_increment; std::string name; }; } // namespace ciface::XInput2 |
