Unigine::InputEvent Class
Header: | #include <UnigineInput.h> |
InputEvent Class
Enums
TYPE#
Members
InputEvent::TYPE getType ( ) const#
Returns the type of the input event.Return value
Type of the input event, one of the TYPE.INPUT_EVENT values.const char * getTypeName ( ) const#
Returns the name of the input event type.Return value
Name of the input event type.void setTimestamp ( unsigned int timestamp ) #
Sets the timestamp of the event.Arguments
- unsigned int timestamp - Timestamp of the event, in milliseconds.
unsigned int getTimestamp ( ) const#
Returns the timestamp of the event.Return value
Timestamp of the event, in milliseconds.void setMousePos ( const Math::ivec2 & pos ) #
Sets the mouse position for the event.Arguments
- const Math::ivec2 & pos - Position of the mouse.
Math::ivec2 getMousePos ( ) const#
Returns the mouse position for the event.Return value
Position of the mouse.Ptr<InputEventMouseButton> getMouseButton ( ) const#
Returns the action cast to an inherited event.Return value
Mouse button input event.Ptr<InputEventMouseWheel> getMouseWheel ( ) const#
Returns the action cast to an inherited event.Return value
Mouse wheel input event.Ptr<InputEventMouseMotion> getMouseMotion ( ) const#
Returns the action cast to an inherited event.Return value
Mouse motion input event.Ptr<InputEventKeyboard> getKeyboard ( ) const#
Returns the action cast to an inherited event.Return value
Keyboard input event.Ptr<InputEventText> getText ( ) const#
Returns the action cast to an inherited event.Return value
Text input event.Ptr<InputEventTouch> getTouch ( ) const#
Ptr<InputEventJoyDevice> getJoyDevice ( ) const#
Ptr<InputEventJoyButton> getJoyButton ( ) const#
Ptr<InputEventJoyAxisMotion> getJoyAxisMotion ( ) const#
Ptr<InputEventJoyPovMotion> getJoyPovMotion ( ) const#
Ptr<InputEventPadDevice> getPadDevice ( ) const#
Ptr<InputEventPadButton> getPadButton ( ) const#
Ptr<InputEventPadAxisMotion> getPadAxisMotion ( ) const#
Last update:
2022-08-08
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)