7#include "RageUtil/Misc/RageInputDevice.h"
23 InputEventType_Invalid
27InputEventTypeToString(InputEventType cat);
29InputEventTypeToLocalizedString(InputEventType cat);
30LuaDeclareType(InputEventType);
37 InputEventType type{ IET_FIRST_PRESS };
40 DeviceInputList m_ButtonState;
57 const std::string& sComment =
"");
63 void Update(
float fDeltaTime);
65 void SetRepeatRate(
float fRepeatRate);
66 void SetRepeatDelay(
float fDelay);
67 void ResetRepeatRate();
73 const DeviceInputList* pButtonState =
nullptr)
const;
74 bool IsKBKeyPressed(DeviceButton k)
const;
75 bool IsControlPressed()
const;
76 bool IsShiftPressed()
const;
78 const DeviceInputList* pButtonState =
nullptr)
const;
80 const DeviceInputList* pButtonState =
nullptr)
const;
81 std::string GetButtonComment(
const DeviceInput& di)
const;
83 void GetInputEvents(std::vector<InputEvent>& aEventOut);
84 void GetPressedButtons(std::vector<DeviceInput>& array)
const;
87 void UpdateCursorLocation(
float _fX,
float _fY);
88 void UpdateMouseWheel(
float _fZ);
89 float GetCursorX() {
return m_MouseCoords.fX; }
90 float GetCursorY() {
return m_MouseCoords.fY; }
91 float GetMouseWheel() {
return m_MouseCoords.fZ; }
94 void PushSelf(lua_State* L);
96 bool IsCapsLockEnabled() {
return capsLockEnabled; }
101 const std::chrono::steady_clock::time_point& now);
102 void ReportButtonChange(
const DeviceInput& di, InputEventType t);
103 void MakeButtonStateList(std::vector<DeviceInput>& aInputOut)
const;
105 std::vector<InputEvent> queue;
112 bool capsLockEnabled =
false;
Definition RageThreads.h:232
Definition InputFilter.h:44