mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
InputCommon/XInput2: Added an axis output for the scroll wheel
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user