#include <input.h>
◆ CInput()
◆ AddKeyEvent()
◆ AddTextEvent()
◆ AltIsPressed()
| bool CInput::AltIsPressed |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Clear()
Clears the events and KeyPress state for this frame. Must be called at the end of each frame.
Implements IInput.
◆ ClearTouchDeltas()
| void CInput::ClearTouchDeltas |
( |
| ) |
|
|
overridevirtual |
Must be called after the touch finger states have been used during the client update to ensure that touch deltas are only accumulated until the next update. If the touch states are only used during rendering, i.e. for user interfaces, then this is called automatically by calling Clear.
Implements IInput.
◆ CloseJoysticks()
| void CInput::CloseJoysticks |
( |
| ) |
|
|
private |
◆ ConchainJoystickGuidChanged()
◆ Console()
◆ ConsumeEvents()
◆ EnsureScreenKeyboardShown()
| void CInput::EnsureScreenKeyboardShown |
( |
| ) |
|
|
overridevirtual |
◆ FindKeyByName()
◆ GetActiveJoystick()
◆ GetCandidate()
◆ GetCandidateCount()
| int CInput::GetCandidateCount |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetCandidateSelectedIndex()
| int CInput::GetCandidateSelectedIndex |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetClipboardText()
| std::string CInput::GetClipboardText |
( |
| ) |
|
|
overridevirtual |
◆ GetComposition()
| const char * CInput::GetComposition |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetCompositionCursor()
| int CInput::GetCompositionCursor |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetCompositionLength()
| int CInput::GetCompositionLength |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetDropFile()
◆ GetJoystick()
◆ GetJoystickDeadzone()
| float CInput::GetJoystickDeadzone |
( |
| ) |
|
|
private |
◆ GetUpdateTime()
| float CInput::GetUpdateTime |
( |
| ) |
const |
|
overridevirtual |
- Returns
- Rolling average of the time in seconds between calls of the Update function.
Implements IInput.
◆ Graphics()
◆ HandleJoystickAddedEvent()
◆ HandleJoystickAxisMotionEvent()
◆ HandleJoystickButtonEvent()
◆ HandleJoystickHatMotionEvent()
◆ HandleJoystickRemovedEvent()
◆ HandleTextEditingEvent()
◆ HandleTouchDownEvent()
◆ HandleTouchMotionEvent()
◆ HandleTouchUpEvent()
◆ HasComposition()
| bool CInput::HasComposition |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Init()
◆ InitJoysticks()
| void CInput::InitJoysticks |
( |
| ) |
|
|
private |
◆ KeyIsPressed()
| bool CInput::KeyIsPressed |
( |
int |
Key | ) |
const |
|
overridevirtual |
Returns whether the given key is currently pressed down. This directly represents the state of pressed keys based on all handled input events.
This function should be used to trigger behavior continuously while a specific key is held down, e.g. for showing a list of all keys that are currently being pressed.
- Parameters
-
- Returns
true if key is currently pressed down, false otherwise.
Implements IInput.
◆ KeyName()
◆ KeyPress()
| bool CInput::KeyPress |
( |
int |
Key | ) |
const |
|
overridevirtual |
Returns whether the given key was pressed down during input updates for current frame. This state is cleared at the end of each frame by calling the Clear function.
This function should be used to trigger behavior only once per key press event per frame, e.g. for menu hotkeys that should activate behavior once per key press.
- Parameters
-
- Returns
true if key was pressed down during input updates for the current frame, false otherwise.
Implements IInput.
◆ ModifierIsPressed()
| bool CInput::ModifierIsPressed |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ MouseModeAbsolute()
| void CInput::MouseModeAbsolute |
( |
| ) |
|
|
overridevirtual |
◆ MouseModeRelative()
| void CInput::MouseModeRelative |
( |
| ) |
|
|
overridevirtual |
◆ MouseRelative()
◆ NativeMousePos()
| vec2 CInput::NativeMousePos |
( |
| ) |
const |
|
overridevirtual |
◆ NativeMousePressed()
| bool CInput::NativeMousePressed |
( |
int |
Index | ) |
const |
|
overridevirtual |
◆ NumJoysticks()
| size_t CInput::NumJoysticks |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ OpenJoystick()
| bool CInput::OpenJoystick |
( |
int |
JoystickIndex | ) |
|
|
private |
◆ ProcessSystemMessage()
◆ SetActiveJoystick()
◆ SetClipboardText()
◆ SetCompositionWindowPosition()
◆ ShiftIsPressed()
| bool CInput::ShiftIsPressed |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Shutdown()
| void CInput::Shutdown |
( |
| ) |
|
|
overridevirtual |
◆ StartTextInput()
| void CInput::StartTextInput |
( |
| ) |
|
|
overridevirtual |
◆ StopTextInput()
| void CInput::StopTextInput |
( |
| ) |
|
|
overridevirtual |
◆ TouchFingerStates()
Returns a vector of the states of all touch fingers currently being pressed down on touch devices. Note that this only contains fingers which are pressed down, i.e. released fingers are never stored. The order of the fingers in this vector is based on the order in which the fingers where pressed.
- Returns
- vector of all touch finger states
Implements IInput.
◆ Update()
◆ UpdateActiveJoystick()
| void CInput::UpdateActiveJoystick |
( |
| ) |
|
|
private |
◆ m_aCurrentKeyStates
◆ m_aDropFile
◆ m_aFrameKeyStates
◆ m_CandidateSelectedIndex
| int CInput::m_CandidateSelectedIndex |
|
private |
◆ m_CompositionCursor
| int CInput::m_CompositionCursor |
|
private |
◆ m_CompositionString
| std::string CInput::m_CompositionString |
|
private |
◆ m_InputCounter
◆ m_InputGrabbed
| bool CInput::m_InputGrabbed |
|
private |
◆ m_LastUpdate
◆ m_MouseFocus
| bool CInput::m_MouseFocus |
|
private |
◆ m_pActiveJoystick
◆ m_pConfigManager
◆ m_pConsole
◆ m_pGraphics
◆ m_UpdateTime
| float CInput::m_UpdateTime |
|
private |
◆ m_vCandidates
| std::vector<std::string> CInput::m_vCandidates |
|
private |
◆ m_vInputEvents
| std::vector<CEvent> CInput::m_vInputEvents |
|
private |
◆ m_vJoysticks
◆ m_vTouchFingerStates
The documentation for this class was generated from the following files: