summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h
diff options
context:
space:
mode:
authorrobopilot99 <jackson9130@gmail.com>2018-06-03 15:48:07 -0500
committerrobopilot99 <jackson9130@gmail.com>2018-06-04 17:58:21 -0500
commitab02499ce770262baacb44e829722e453db6e24a (patch)
tree9ff458e952d63f7bf17e5fa8108e2071f957a1fe /Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h
parent8fce18e4ff2367eec9af767062d5266cc78541b8 (diff)
Add auto-hide option to Wii IR pointer
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h
index 0a3b7277f3..5e740334cf 100644
--- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h
+++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Cursor.h
@@ -22,8 +22,15 @@ private:
// to something that makes sense with the default range.
static constexpr double SPEED_MULTIPLIER = 0.04;
+ // Sets the length for the auto-hide timer
+ static constexpr int TIMER_VALUE = 500;
+
ControlState m_x = 0.0;
ControlState m_y = 0.0;
ControlState m_z = 0.0;
+
+ int m_autohide_timer = TIMER_VALUE;
+ ControlState m_prev_xx;
+ ControlState m_prev_yy;
};
} // namespace ControllerEmu