aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/drivers/tas_input.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2021-12-13 10:41:30 -0500
committerLioncash <mathew1800@gmail.com>2021-12-13 10:41:32 -0500
commitc126b0718ca4ffff463c4462ca38f61019df4acf (patch)
tree5c1d3f7839643b3e43efab520c683bb5a9ea4815 /src/input_common/drivers/tas_input.h
parent3592628302409dce264bb017d70880ecee74173c (diff)
tas_input: Make TasAxes enum an enum class
Prevents these values from potentially clashing with anything in other headers.
Diffstat (limited to 'src/input_common/drivers/tas_input.h')
-rw-r--r--src/input_common/drivers/tas_input.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/input_common/drivers/tas_input.h b/src/input_common/drivers/tas_input.h
index c95a130fcb..c44c39da99 100644
--- a/src/input_common/drivers/tas_input.h
+++ b/src/input_common/drivers/tas_input.h
@@ -128,6 +128,8 @@ public:
std::tuple<TasState, size_t, size_t> GetStatus() const;
private:
+ enum class TasAxis : u8;
+
struct TASCommand {
u64 buttons{};
TasAnalog l_axis{};
@@ -182,6 +184,9 @@ private:
*/
std::string WriteCommandAxis(TasAnalog data) const;
+ /// Sets an axis for a particular pad to the given value.
+ void SetTasAxis(const PadIdentifier& identifier, TasAxis axis, f32 value);
+
size_t script_length{0};
bool is_recording{false};
bool is_running{false};