summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2022-10-03 16:25:40 -0400
committerGitHub <noreply@github.com>2022-10-03 16:25:40 -0400
commit052c7395fbc0789147703a4c5cc754ae28f8f8bd (patch)
treec6e206df257937e8373aeeb012e29ea74f0d0fc7 /Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h
parentcb6d476538afe85c25d30e8679b6f15abe5d1760 (diff)
parent51ee05cb35f401c82adf815cbb4f4c3133e7ea84 (diff)
Merge pull request #9624 from JosJuice/input-override
Add new "input override" system for TAS input and Android touch controls
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h
index 5e64ce86dc..3710a40d92 100644
--- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h
+++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h
@@ -29,6 +29,7 @@ public:
// Modifies the state
StateData GetState(bool adjusted);
+ StateData GetState(bool adjusted, const ControllerEmu::InputOverrideFunction& override_func);
// Yaw movement in radians.
ControlState GetTotalYaw() const;
@@ -40,6 +41,8 @@ public:
ControlState GetVerticalOffset() const;
private:
+ Cursor::StateData UpdateState(Cursor::ReshapeData input);
+
// This is used to reduce the cursor speed for relative input
// to something that makes sense with the default range.
static constexpr double STEP_PER_SEC = 0.01 * 200;