#include <touch_controls.h>
|
enum class | EButtonShape { RECT
, CIRCLE
, NUM_SHAPES
} |
|
enum class | EButtonVisibility {
INGAME
, ZOOM_ALLOWED
, VOTE_ACTIVE
, DUMMY_ALLOWED
,
DUMMY_CONNECTED
, RCON_AUTHED
, DEMO_PLAYER
, EXTRA_MENU_1
,
EXTRA_MENU_2
, EXTRA_MENU_3
, EXTRA_MENU_4
, EXTRA_MENU_5
,
NUM_VISIBILITIES
} |
|
enum | { ACTION_AIM
, ACTION_FIRE
, ACTION_HOOK
, NUM_ACTIONS
} |
|
◆ anonymous enum
Enumerator |
---|
ACTION_AIM | |
ACTION_FIRE | |
ACTION_HOOK | |
NUM_ACTIONS | |
◆ EButtonShape
Enumerator |
---|
RECT | |
CIRCLE | |
NUM_SHAPES | |
◆ EButtonVisibility
Enumerator |
---|
INGAME | |
ZOOM_ALLOWED | |
VOTE_ACTIVE | |
DUMMY_ALLOWED | |
DUMMY_CONNECTED | |
RCON_AUTHED | |
DEMO_PLAYER | |
EXTRA_MENU_1 | |
EXTRA_MENU_2 | |
EXTRA_MENU_3 | |
EXTRA_MENU_4 | |
EXTRA_MENU_5 | |
NUM_VISIBILITIES | |
◆ EDirectTouchIngameMode
Enumerator |
---|
DISABLED | |
ACTION | |
AIM | |
FIRE | |
HOOK | |
NUM_STATES | |
◆ EDirectTouchSpectateMode
Enumerator |
---|
DISABLED | |
AIM | |
NUM_STATES | |
◆ CalculateScreenSize()
vec2 CTouchControls::CalculateScreenSize |
( |
| ) |
const |
|
private |
◆ DirectTouchIngame()
◆ DirectTouchSpectate()
◆ HasEditingChanges()
bool CTouchControls::HasEditingChanges |
( |
| ) |
const |
|
inline |
◆ InitVisibilityFunctions()
void CTouchControls::InitVisibilityFunctions |
( |
| ) |
|
|
private |
◆ IsEditingActive()
bool CTouchControls::IsEditingActive |
( |
| ) |
const |
|
inline |
◆ LoadConfigurationFromClipboard()
bool CTouchControls::LoadConfigurationFromClipboard |
( |
| ) |
|
◆ LoadConfigurationFromFile()
bool CTouchControls::LoadConfigurationFromFile |
( |
int |
StorageType | ) |
|
◆ NextActiveAction()
int CTouchControls::NextActiveAction |
( |
int |
Action | ) |
const |
|
private |
◆ NextDirectTouchAction()
int CTouchControls::NextDirectTouchAction |
( |
| ) |
const |
|
private |
◆ OnInit()
void CTouchControls::OnInit |
( |
| ) |
|
|
overridevirtual |
Called to let the components run initialization code.
Reimplemented from CComponent.
◆ OnRender()
void CTouchControls::OnRender |
( |
| ) |
|
|
overridevirtual |
Called when the component should get rendered.
The render order depends on the component insertion order.
Reimplemented from CComponent.
◆ OnReset()
void CTouchControls::OnReset |
( |
| ) |
|
|
overridevirtual |
Called to reset the component. This method is usually called on your component constructor to avoid code duplication.
- See also
- CHud::CHud()
-
CHud::OnReset()
Reimplemented from CComponent.
◆ OnTouchState()
Called with all current touch finger states.
- Parameters
-
vTouchFingerStates | The touch finger states to be handled. |
- Returns
true
if the component used the touch events, false
otherwise
Reimplemented from CComponent.
◆ OnWindowResize()
void CTouchControls::OnWindowResize |
( |
| ) |
|
|
overridevirtual |
Called when the window has been resized.
Reimplemented from CComponent.
◆ ParseBehavior()
◆ ParseBindBehavior()
◆ ParseBindToggleBehavior()
◆ ParseButton()
◆ ParseConfiguration()
bool CTouchControls::ParseConfiguration |
( |
const void * |
pFileData, |
|
|
unsigned |
FileLength |
|
) |
| |
|
private |
◆ ParseDirectTouchIngameMode()
◆ ParseDirectTouchSpectateMode()
◆ ParseExtraMenuBehavior()
◆ ParsePredefinedBehavior()
◆ RenderButtons()
void CTouchControls::RenderButtons |
( |
| ) |
|
|
private |
◆ ResetButtons()
void CTouchControls::ResetButtons |
( |
| ) |
|
|
private |
◆ SaveConfigurationToClipboard()
void CTouchControls::SaveConfigurationToClipboard |
( |
| ) |
|
◆ SaveConfigurationToFile()
bool CTouchControls::SaveConfigurationToFile |
( |
| ) |
|
◆ SetDirectTouchIngame()
◆ SetDirectTouchSpectate()
◆ SetEditingActive()
void CTouchControls::SetEditingActive |
( |
bool |
EditingActive | ) |
|
|
inline |
◆ SetEditingChanges()
void CTouchControls::SetEditingChanges |
( |
bool |
EditingChanges | ) |
|
|
inline |
◆ Sizeof()
int CTouchControls::Sizeof |
( |
| ) |
const |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
◆ UpdateButtons()
◆ WriteConfiguration()
void CTouchControls::WriteConfiguration |
( |
CJsonWriter * |
pWriter | ) |
|
|
private |
◆ DIRECT_TOUCH_INGAME_MODE_NAMES
◆ DIRECT_TOUCH_SPECTATE_MODE_NAMES
◆ LABEL_TYPE_NAMES
◆ m_ActionSelected
The currently selected action which is used for direct touch and is changed and used by some button behaviors.
◆ m_aDirectTouchActionStates
The states of the different actions for direct touch input.
◆ m_aExtraMenuActive
The activation states of the different extra menus which are toggle by the extra menu button behavior.
◆ m_aVisibilityFunctions
◆ m_DirectTouchIngame
Mode of direct touch input while ingame.
Saved to the touch controls configuration.
◆ m_DirectTouchLastAction
int CTouchControls::m_DirectTouchLastAction = ACTION_FIRE |
|
private |
The action that was last activated with direct touch input, which will determine the finger that will be used to update the mouse position from direct touch input.
◆ m_DirectTouchSpectate
Mode of direct touch input while spectating.
Saved to the touch controls configuration.
◆ m_EditingActive
bool CTouchControls::m_EditingActive = false |
|
private |
Whether editing mode is currently active.
◆ m_EditingChanges
bool CTouchControls::m_EditingChanges = false |
|
private |
Whether there are changes to the current configuration in editing mode.
◆ m_pPrimaryJoystickTouchButtonBehavior
A pointer to the action joystick, if any exists in the current configuration, or nullptr
if none. This is set by CJoystickActionTouchButtonBehavior when it is initialized and always cleared before loading a new touch button configuration.
◆ m_vTouchButtons
All touch buttons.
Saved to the touch controls configuration.
◆ SHAPE_NAMES
The documentation for this class was generated from the following files: