diff options
author | MonsterDruide1 <5958456@gmail.com> | 2021-06-18 16:15:42 +0200 |
---|---|---|
committer | MonsterDruide1 <5958456@gmail.com> | 2021-09-18 23:22:00 +0200 |
commit | b42c3ce21db249d5e3bc04b4f73202e757da317c (patch) | |
tree | c5ccf9e311d2a675b0e2afff3d85ed4654047b5e /src/input_common/main.h | |
parent | Merge pull request #7020 from Moonlacer/remove_audio_stretching (diff) | |
download | yuzu-b42c3ce21db249d5e3bc04b4f73202e757da317c.tar yuzu-b42c3ce21db249d5e3bc04b4f73202e757da317c.tar.gz yuzu-b42c3ce21db249d5e3bc04b4f73202e757da317c.tar.bz2 yuzu-b42c3ce21db249d5e3bc04b4f73202e757da317c.tar.lz yuzu-b42c3ce21db249d5e3bc04b4f73202e757da317c.tar.xz yuzu-b42c3ce21db249d5e3bc04b4f73202e757da317c.tar.zst yuzu-b42c3ce21db249d5e3bc04b4f73202e757da317c.zip |
Diffstat (limited to '')
-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 { class Mouse; } +namespace TasInput { +class Tas; +} + namespace InputCommon { namespace Polling { @@ -64,6 +68,8 @@ class MouseButtonFactory; class MouseAnalogFactory; class MouseMotionFactory; class MouseTouchFactory; +class TasButtonFactory; +class TasAnalogFactory; class Keyboard; /** @@ -103,6 +109,11 @@ public: /// Retrieves the underlying mouse device. [[nodiscard]] const MouseInput::Mouse* GetMouse() const; + /// Retrieves the underlying tas device. + [[nodiscard]] TasInput::Tas* GetTas(); + + /// Retrieves the underlying tas device. + [[nodiscard]] const TasInput::Tas* GetTas() const; /** * Returns all available input devices that this Factory can create a new device with. * Each returned ParamPackage should have a `display` field used for display, a class field for @@ -168,6 +179,18 @@ public: /// Retrieves the underlying udp touch handler. [[nodiscard]] const MouseTouchFactory* GetMouseTouch() const; + /// Retrieves the underlying tas button handler. + [[nodiscard]] TasButtonFactory* GetTasButtons(); + + /// Retrieves the underlying tas button handler. + [[nodiscard]] const TasButtonFactory* GetTasButtons() const; + + /// Retrieves the underlying tas touch handler. + [[nodiscard]] TasAnalogFactory* GetTasAnalogs(); + + /// Retrieves the underlying tas touch handler. + [[nodiscard]] const TasAnalogFactory* GetTasAnalogs() const; + /// Reloads the input devices void ReloadInputDevices(); |