diff options
Diffstat (limited to 'src/input_common/main.h')
| -rw-r--r-- | src/input_common/main.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/input_common/main.h b/src/input_common/main.h index 5d6f26385..1d06fc5f5 100644 --- a/src/input_common/main.h +++ b/src/input_common/main.h | |||
| @@ -29,6 +29,10 @@ namespace MouseInput { | |||
| 29 | class Mouse; | 29 | class Mouse; |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | namespace TasInput { | ||
| 33 | class Tas; | ||
| 34 | } | ||
| 35 | |||
| 32 | namespace InputCommon { | 36 | namespace InputCommon { |
| 33 | namespace Polling { | 37 | namespace Polling { |
| 34 | 38 | ||
| @@ -64,6 +68,8 @@ class MouseButtonFactory; | |||
| 64 | class MouseAnalogFactory; | 68 | class MouseAnalogFactory; |
| 65 | class MouseMotionFactory; | 69 | class MouseMotionFactory; |
| 66 | class MouseTouchFactory; | 70 | class MouseTouchFactory; |
| 71 | class TasButtonFactory; | ||
| 72 | class TasAnalogFactory; | ||
| 67 | class Keyboard; | 73 | class Keyboard; |
| 68 | 74 | ||
| 69 | /** | 75 | /** |
| @@ -103,6 +109,11 @@ public: | |||
| 103 | /// Retrieves the underlying mouse device. | 109 | /// Retrieves the underlying mouse device. |
| 104 | [[nodiscard]] const MouseInput::Mouse* GetMouse() const; | 110 | [[nodiscard]] const MouseInput::Mouse* GetMouse() const; |
| 105 | 111 | ||
| 112 | /// Retrieves the underlying tas device. | ||
| 113 | [[nodiscard]] TasInput::Tas* GetTas(); | ||
| 114 | |||
| 115 | /// Retrieves the underlying tas device. | ||
| 116 | [[nodiscard]] const TasInput::Tas* GetTas() const; | ||
| 106 | /** | 117 | /** |
| 107 | * Returns all available input devices that this Factory can create a new device with. | 118 | * Returns all available input devices that this Factory can create a new device with. |
| 108 | * Each returned ParamPackage should have a `display` field used for display, a class field for | 119 | * Each returned ParamPackage should have a `display` field used for display, a class field for |
| @@ -168,6 +179,18 @@ public: | |||
| 168 | /// Retrieves the underlying udp touch handler. | 179 | /// Retrieves the underlying udp touch handler. |
| 169 | [[nodiscard]] const MouseTouchFactory* GetMouseTouch() const; | 180 | [[nodiscard]] const MouseTouchFactory* GetMouseTouch() const; |
| 170 | 181 | ||
| 182 | /// Retrieves the underlying tas button handler. | ||
| 183 | [[nodiscard]] TasButtonFactory* GetTasButtons(); | ||
| 184 | |||
| 185 | /// Retrieves the underlying tas button handler. | ||
| 186 | [[nodiscard]] const TasButtonFactory* GetTasButtons() const; | ||
| 187 | |||
| 188 | /// Retrieves the underlying tas touch handler. | ||
| 189 | [[nodiscard]] TasAnalogFactory* GetTasAnalogs(); | ||
| 190 | |||
| 191 | /// Retrieves the underlying tas touch handler. | ||
| 192 | [[nodiscard]] const TasAnalogFactory* GetTasAnalogs() const; | ||
| 193 | |||
| 171 | /// Reloads the input devices | 194 | /// Reloads the input devices |
| 172 | void ReloadInputDevices(); | 195 | void ReloadInputDevices(); |
| 173 | 196 | ||