Unigine::InputEventKeyboard Class
Header: | #include <UnigineInput.h> |
Inherits from: | InputEvent |
InputEventKeyboard Class
Перечисления (Enums)
ACTION#
Имя | Описание |
---|---|
ACTION_DOWN = 0 | Keyboard button is held down. |
ACTION_REPEAT = 1 | Keyboard button has been pressed repeatedly. |
ACTION_UP = 2 | Keyboard button has been released. |
Members
InputEventKeyboard ( ) #
Default constructor.InputEventKeyboard ( unsigned long long timestamp, const Math::ivec2 & mouse_pos, InputEventKeyboard::ACTION action, Input::KEY key ) #
Keyboard input event constructor.Arguments
- unsigned long long timestamp - Timestamp of the event.
- const Math::ivec2 & mouse_pos - Position of the mouse.
- InputEventKeyboard::ACTION action - Action performed.
- Input::KEY key - Virtual keyboard key value (dependent on the language).
InputEventKeyboard ( unsigned long long timestamp, const Math::ivec2 & mouse_pos ) #
Keyboard input event constructor.Arguments
- unsigned long long timestamp - Timestamp of the event.
- const Math::ivec2 & mouse_pos - Position of the mouse.
void setAction ( InputEventKeyboard::ACTION action ) #
Sets the action to be performed by the keyboard.Arguments
- InputEventKeyboard::ACTION action - Action performed by the keyboard.
InputEventKeyboard::ACTION getAction ( ) const#
Returns the action performed by the mouse button.Return value
Action performed by the keyboard.void setKey ( Input::KEY key ) #
Sets the keyboard key language-dependent value.Arguments
- Input::KEY key - Virtual keyboard key value (dependent on the keyboard language).
Input::KEY getKey ( ) const#
Returns the keyboard key language-dependent value.Return value
Virtual keyboard key value (dependent on the keyboard language).Last update:
16.08.2024
Помогите сделать статью лучше
Была ли эта статья полезной?
(или выберите слово/фразу и нажмите Ctrl+Enter