Unigine::InputEventMouseMotion Class
Header: | #include <UnigineInput.h> |
Inherits from: | InputEvent |
InputEventMouseMotion Class
Members
InputEventMouseMotion ( ) #
Default constructor.InputEventMouseMotion ( unsigned long long timestamp, const Math::ivec2 & mouse_pos, const Math::ivec2 & delta ) #
Mouse motion input event constructor.Arguments
- unsigned long long timestamp - Timestamp of the event.
- const Math::ivec2 & mouse_pos - Position of the mouse.
- const Math::ivec2 & delta - Delta of the mouse position from the previous event.
InputEventMouseMotion ( unsigned long long timestamp, const Math::ivec2 & mouse_pos ) #
Mouse motion input event constructor.Arguments
- unsigned long long timestamp - Timestamp of the event.
- const Math::ivec2 & mouse_pos - Position of the mouse.
void setDelta ( const Math::ivec2 & delta ) #
Sets the delta of the mouse position from the previous event.Arguments
- const Math::ivec2 & delta - Delta of the mouse position from the previous event.
Math::ivec2 getDelta ( ) const#
Returns the delta of the mouse position from the previous event.Return value
Delta of the mouse position from the previous event.Last update:
2024-08-16
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)