#include <input.h>
◆ anonymous enum
Enumerator |
---|
FLAG_PRESS | |
FLAG_RELEASE | |
FLAG_TEXT | |
◆ ECursorType
Enumerator |
---|
CURSOR_NONE | |
CURSOR_MOUSE | |
CURSOR_JOYSTICK | |
◆ AltIsPressed()
virtual bool IInput::AltIsPressed |
( |
| ) |
const |
|
pure virtual |
◆ Clear()
virtual void IInput::Clear |
( |
| ) |
|
|
pure virtual |
Clears the events and KeyPress state for this frame. Must be called at the end of each frame.
Implemented in CInput.
◆ ClearTouchDeltas()
virtual void IInput::ClearTouchDeltas |
( |
| ) |
|
|
pure virtual |
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.
Implemented in CInput.
◆ ConsumeEvents()
virtual void IInput::ConsumeEvents |
( |
std::function< void(const CEvent &Event)> |
Consumer | ) |
const |
|
pure virtual |
◆ CursorRelative()
ECursorType IInput::CursorRelative |
( |
float * |
pX, |
|
|
float * |
pY |
|
) |
| |
|
inline |
◆ FindKeyByName()
virtual int IInput::FindKeyByName |
( |
const char * |
pKeyName | ) |
const |
|
pure virtual |
◆ GetActiveJoystick()
virtual IJoystick * IInput::GetActiveJoystick |
( |
| ) |
|
|
pure virtual |
◆ GetCandidate()
virtual const char * IInput::GetCandidate |
( |
int |
Index | ) |
const |
|
pure virtual |
◆ GetCandidateCount()
virtual int IInput::GetCandidateCount |
( |
| ) |
const |
|
pure virtual |
◆ GetCandidateSelectedIndex()
virtual int IInput::GetCandidateSelectedIndex |
( |
| ) |
const |
|
pure virtual |
◆ GetClipboardText()
virtual std::string IInput::GetClipboardText |
( |
| ) |
|
|
pure virtual |
◆ GetComposition()
virtual const char * IInput::GetComposition |
( |
| ) |
const |
|
pure virtual |
◆ GetCompositionCursor()
virtual int IInput::GetCompositionCursor |
( |
| ) |
const |
|
pure virtual |
◆ GetCompositionLength()
virtual int IInput::GetCompositionLength |
( |
| ) |
const |
|
pure virtual |
◆ GetDropFile()
virtual bool IInput::GetDropFile |
( |
char * |
aBuf, |
|
|
int |
Len |
|
) |
| |
|
pure virtual |
◆ GetJoystick()
virtual IJoystick * IInput::GetJoystick |
( |
size_t |
Index | ) |
|
|
pure virtual |
◆ GetUpdateTime()
virtual float IInput::GetUpdateTime |
( |
| ) |
const |
|
pure virtual |
- Returns
- Rolling average of the time in seconds between calls of the Update function.
Implemented in CInput.
◆ HasComposition()
virtual bool IInput::HasComposition |
( |
| ) |
const |
|
pure virtual |
◆ InterfaceName()
static const char * IInput::InterfaceName |
( |
| ) |
|
|
inlinestatic |
◆ KeyIsPressed()
virtual bool IInput::KeyIsPressed |
( |
int |
Key | ) |
const |
|
pure virtual |
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.
Implemented in CInput.
◆ KeyName()
virtual const char * IInput::KeyName |
( |
int |
Key | ) |
const |
|
pure virtual |
◆ KeyPress()
virtual bool IInput::KeyPress |
( |
int |
Key | ) |
const |
|
pure virtual |
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.
Implemented in CInput.
◆ ModifierIsPressed()
virtual bool IInput::ModifierIsPressed |
( |
| ) |
const |
|
pure virtual |
◆ MouseModeAbsolute()
virtual void IInput::MouseModeAbsolute |
( |
| ) |
|
|
pure virtual |
◆ MouseModeRelative()
virtual void IInput::MouseModeRelative |
( |
| ) |
|
|
pure virtual |
◆ MouseRelative()
virtual bool IInput::MouseRelative |
( |
float * |
pX, |
|
|
float * |
pY |
|
) |
| |
|
pure virtual |
◆ NativeMousePos()
virtual vec2 IInput::NativeMousePos |
( |
| ) |
const |
|
pure virtual |
◆ NativeMousePressed()
virtual bool IInput::NativeMousePressed |
( |
int |
Index | ) |
const |
|
pure virtual |
◆ NumJoysticks()
virtual size_t IInput::NumJoysticks |
( |
| ) |
const |
|
pure virtual |
◆ SetActiveJoystick()
virtual void IInput::SetActiveJoystick |
( |
size_t |
Index | ) |
|
|
pure virtual |
◆ SetClipboardText()
virtual void IInput::SetClipboardText |
( |
const char * |
pText | ) |
|
|
pure virtual |
◆ SetCompositionWindowPosition()
virtual void IInput::SetCompositionWindowPosition |
( |
float |
X, |
|
|
float |
Y, |
|
|
float |
H |
|
) |
| |
|
pure virtual |
◆ ShiftIsPressed()
virtual bool IInput::ShiftIsPressed |
( |
| ) |
const |
|
pure virtual |
◆ StartTextInput()
virtual void IInput::StartTextInput |
( |
| ) |
|
|
pure virtual |
◆ StopTextInput()
virtual void IInput::StopTextInput |
( |
| ) |
|
|
pure virtual |
◆ 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
Implemented in CInput.
The documentation for this class was generated from the following file: