3#include <Core/Input/InputDevice.h>
4#include <Core/Input/InputManager.h>
5#include <Foundation/Math/Vec2.h>
76 void SetInputArea(
const plVec2& vLowerLeft,
const plVec2& vUpperRight,
float fThumbstickRadius,
float fPriority,
77 CenterMode::Enum center = CenterMode::ActivationPoint);
80 void GetInputArea(
plVec2& out_vLowerLeft,
plVec2& out_vUpperRight);
86 void SetTriggerInputSlot(Input::Enum input,
const plInputActionConfig* pCustomConfig =
nullptr);
98 void SetEnabled(
bool bEnabled) { m_bEnabled = bEnabled; }
107 void UpdateActionMapping();
120 bool m_bConfigChanged;
124 CenterMode::Enum m_CenterMode;
126 static plInt32 s_iThumbsticks;
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
A Virtual Thumb-stick is an input device that transforms certain types of input (mouse / touch) into ...
Definition VirtualThumbStick.h:15
bool IsEnabled() const
Returns whether the thumb-stick is currently enabled.
Definition VirtualThumbStick.h:101
virtual void InitializeDevice() override
Override this if you need to do device specific initialization before the first use.
Definition VirtualThumbStick.h:129
void SetEnabled(bool bEnabled)
Allows to enable or disable the entire thumb-stick temporarily.
Definition VirtualThumbStick.h:98
bool IsActive() const
Returns whether the thumb-stick is currently active (ie. triggered) and generates output.
Definition VirtualThumbStick.h:104
Defines whether the thumb-stick center position is locked or relative to where the user started touch...
Definition VirtualThumbStick.h:55
Enum
Definition VirtualThumbStick.h:57
@ InputArea
The center of the thumb-stick is always at the center of the input area.
Definition VirtualThumbStick.h:58
Specifies which type of output the thumb-stick shall generate.
Definition VirtualThumbStick.h:38
Enum
Definition VirtualThumbStick.h:40
@ Controller2_LeftStick
The Thumb-stick acts like the left stick of controller 2.
Definition VirtualThumbStick.h:45
@ Controller0_RightStick
The Thumb-stick acts like the right stick of controller 0.
Definition VirtualThumbStick.h:42
@ Controller3_LeftStick
The Thumb-stick acts like the left stick of controller 3.
Definition VirtualThumbStick.h:47
@ Controller1_LeftStick
The Thumb-stick acts like the left stick of controller 1.
Definition VirtualThumbStick.h:43
@ Controller0_LeftStick
The Thumb-stick acts like the left stick of controller 0.
Definition VirtualThumbStick.h:41
@ Controller3_RightStick
The Thumb-stick acts like the right stick of controller 3.
Definition VirtualThumbStick.h:48
@ Controller2_RightStick
The Thumb-stick acts like the right stick of controller 2.
Definition VirtualThumbStick.h:46
@ Controller1_RightStick
The Thumb-stick acts like the right stick of controller 1.
Definition VirtualThumbStick.h:44