diff options
author | Lioncash <mathew1800@gmail.com> | 2021-12-13 16:41:30 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-12-13 16:41:32 +0100 |
commit | c126b0718ca4ffff463c4462ca38f61019df4acf (patch) | |
tree | 5c1d3f7839643b3e43efab520c683bb5a9ea4815 /src/input_common/drivers/tas_input.h | |
parent | Merge pull request #7574 from v1993/patch-1 (diff) | |
download | yuzu-c126b0718ca4ffff463c4462ca38f61019df4acf.tar yuzu-c126b0718ca4ffff463c4462ca38f61019df4acf.tar.gz yuzu-c126b0718ca4ffff463c4462ca38f61019df4acf.tar.bz2 yuzu-c126b0718ca4ffff463c4462ca38f61019df4acf.tar.lz yuzu-c126b0718ca4ffff463c4462ca38f61019df4acf.tar.xz yuzu-c126b0718ca4ffff463c4462ca38f61019df4acf.tar.zst yuzu-c126b0718ca4ffff463c4462ca38f61019df4acf.zip |
Diffstat (limited to '')
-rw-r--r-- | src/input_common/drivers/tas_input.h | 5 |
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 c95a130fc..c44c39da9 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}; |