summaryrefslogtreecommitdiffstats
path: root/src/input_common/main.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-09-19 01:30:06 +0200
committerGitHub <noreply@github.com>2021-09-19 01:30:06 +0200
commit6e376c27a327d8e123efafe49370a304cec20221 (patch)
treea11be198f5f4933a68c8cc5cfc183e08c3b01fcb /src/input_common/main.h
parentMerge pull request #7020 from Moonlacer/remove_audio_stretching (diff)
parentUI: Relocate tas menu and add brief description (diff)
downloadyuzu-6e376c27a327d8e123efafe49370a304cec20221.tar
yuzu-6e376c27a327d8e123efafe49370a304cec20221.tar.gz
yuzu-6e376c27a327d8e123efafe49370a304cec20221.tar.bz2
yuzu-6e376c27a327d8e123efafe49370a304cec20221.tar.lz
yuzu-6e376c27a327d8e123efafe49370a304cec20221.tar.xz
yuzu-6e376c27a327d8e123efafe49370a304cec20221.tar.zst
yuzu-6e376c27a327d8e123efafe49370a304cec20221.zip
Diffstat (limited to '')
-rw-r--r--src/input_common/main.h39
1 files changed, 31 insertions, 8 deletions
diff --git a/src/input_common/main.h b/src/input_common/main.h
index 5d6f26385..6390d3f09 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
@@ -144,30 +155,42 @@ public:
/// Retrieves the underlying udp touch handler.
[[nodiscard]] const UDPTouchFactory* GetUDPTouch() const;
- /// Retrieves the underlying GameCube button handler.
+ /// Retrieves the underlying mouse button handler.
[[nodiscard]] MouseButtonFactory* GetMouseButtons();
- /// Retrieves the underlying GameCube button handler.
+ /// Retrieves the underlying mouse button handler.
[[nodiscard]] const MouseButtonFactory* GetMouseButtons() const;
- /// Retrieves the underlying udp touch handler.
+ /// Retrieves the underlying mouse analog handler.
[[nodiscard]] MouseAnalogFactory* GetMouseAnalogs();
- /// Retrieves the underlying udp touch handler.
+ /// Retrieves the underlying mouse analog handler.
[[nodiscard]] const MouseAnalogFactory* GetMouseAnalogs() const;
- /// Retrieves the underlying udp motion handler.
+ /// Retrieves the underlying mouse motion handler.
[[nodiscard]] MouseMotionFactory* GetMouseMotions();
- /// Retrieves the underlying udp motion handler.
+ /// Retrieves the underlying mouse motion handler.
[[nodiscard]] const MouseMotionFactory* GetMouseMotions() const;
- /// Retrieves the underlying udp touch handler.
+ /// Retrieves the underlying mouse touch handler.
[[nodiscard]] MouseTouchFactory* GetMouseTouch();
- /// Retrieves the underlying udp touch handler.
+ /// Retrieves the underlying mouse 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 analogs handler.
+ [[nodiscard]] TasAnalogFactory* GetTasAnalogs();
+
+ /// Retrieves the underlying tas analogs handler.
+ [[nodiscard]] const TasAnalogFactory* GetTasAnalogs() const;
+
/// Reloads the input devices
void ReloadInputDevices();