diff options
Diffstat (limited to 'src/input_common/main.h')
| -rw-r--r-- | src/input_common/main.h | 41 |
1 files changed, 36 insertions, 5 deletions
diff --git a/src/input_common/main.h b/src/input_common/main.h index dded3f1ef..5d6f26385 100644 --- a/src/input_common/main.h +++ b/src/input_common/main.h | |||
| @@ -25,6 +25,10 @@ namespace Settings::NativeMotion { | |||
| 25 | enum Values : int; | 25 | enum Values : int; |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | namespace MouseInput { | ||
| 29 | class Mouse; | ||
| 30 | } | ||
| 31 | |||
| 28 | namespace InputCommon { | 32 | namespace InputCommon { |
| 29 | namespace Polling { | 33 | namespace Polling { |
| 30 | 34 | ||
| @@ -56,8 +60,11 @@ class GCAnalogFactory; | |||
| 56 | class GCButtonFactory; | 60 | class GCButtonFactory; |
| 57 | class UDPMotionFactory; | 61 | class UDPMotionFactory; |
| 58 | class UDPTouchFactory; | 62 | class UDPTouchFactory; |
| 63 | class MouseButtonFactory; | ||
| 64 | class MouseAnalogFactory; | ||
| 65 | class MouseMotionFactory; | ||
| 66 | class MouseTouchFactory; | ||
| 59 | class Keyboard; | 67 | class Keyboard; |
| 60 | class MotionEmu; | ||
| 61 | 68 | ||
| 62 | /** | 69 | /** |
| 63 | * Given a ParamPackage for a Device returned from `GetInputDevices`, attempt to get the default | 70 | * Given a ParamPackage for a Device returned from `GetInputDevices`, attempt to get the default |
| @@ -90,11 +97,11 @@ public: | |||
| 90 | /// Retrieves the underlying keyboard device. | 97 | /// Retrieves the underlying keyboard device. |
| 91 | [[nodiscard]] const Keyboard* GetKeyboard() const; | 98 | [[nodiscard]] const Keyboard* GetKeyboard() const; |
| 92 | 99 | ||
| 93 | /// Retrieves the underlying motion emulation factory. | 100 | /// Retrieves the underlying mouse device. |
| 94 | [[nodiscard]] MotionEmu* GetMotionEmu(); | 101 | [[nodiscard]] MouseInput::Mouse* GetMouse(); |
| 95 | 102 | ||
| 96 | /// Retrieves the underlying motion emulation factory. | 103 | /// Retrieves the underlying mouse device. |
| 97 | [[nodiscard]] const MotionEmu* GetMotionEmu() const; | 104 | [[nodiscard]] const MouseInput::Mouse* GetMouse() const; |
| 98 | 105 | ||
| 99 | /** | 106 | /** |
| 100 | * Returns all available input devices that this Factory can create a new device with. | 107 | * Returns all available input devices that this Factory can create a new device with. |
| @@ -137,6 +144,30 @@ public: | |||
| 137 | /// Retrieves the underlying udp touch handler. | 144 | /// Retrieves the underlying udp touch handler. |
| 138 | [[nodiscard]] const UDPTouchFactory* GetUDPTouch() const; | 145 | [[nodiscard]] const UDPTouchFactory* GetUDPTouch() const; |
| 139 | 146 | ||
| 147 | /// Retrieves the underlying GameCube button handler. | ||
| 148 | [[nodiscard]] MouseButtonFactory* GetMouseButtons(); | ||
| 149 | |||
| 150 | /// Retrieves the underlying GameCube button handler. | ||
| 151 | [[nodiscard]] const MouseButtonFactory* GetMouseButtons() const; | ||
| 152 | |||
| 153 | /// Retrieves the underlying udp touch handler. | ||
| 154 | [[nodiscard]] MouseAnalogFactory* GetMouseAnalogs(); | ||
| 155 | |||
| 156 | /// Retrieves the underlying udp touch handler. | ||
| 157 | [[nodiscard]] const MouseAnalogFactory* GetMouseAnalogs() const; | ||
| 158 | |||
| 159 | /// Retrieves the underlying udp motion handler. | ||
| 160 | [[nodiscard]] MouseMotionFactory* GetMouseMotions(); | ||
| 161 | |||
| 162 | /// Retrieves the underlying udp motion handler. | ||
| 163 | [[nodiscard]] const MouseMotionFactory* GetMouseMotions() const; | ||
| 164 | |||
| 165 | /// Retrieves the underlying udp touch handler. | ||
| 166 | [[nodiscard]] MouseTouchFactory* GetMouseTouch(); | ||
| 167 | |||
| 168 | /// Retrieves the underlying udp touch handler. | ||
| 169 | [[nodiscard]] const MouseTouchFactory* GetMouseTouch() const; | ||
| 170 | |||
| 140 | /// Reloads the input devices | 171 | /// Reloads the input devices |
| 141 | void ReloadInputDevices(); | 172 | void ReloadInputDevices(); |
| 142 | 173 | ||