Unigine::InputEventMouseWheel Class
Header: | #include <UnigineInput.h> |
Inherits from: | InputEvent |
InputEventMouseWheel Class
Members
InputEventMouseWheel ( ) #
Default constructor.InputEventMouseWheel ( unsigned int timestamp, const Math::ivec2 & mouse_pos ) #
Mouse wheel input event constructor.Arguments
- unsigned int timestamp - Timestamp of the event.
- const Math::ivec2 & mouse_pos - Position of the mouse.
InputEventMouseWheel ( unsigned int timestamp, const Math::ivec2 & mouse_pos, const Math::ivec2 & scroll ) #
Mouse wheel input event constructor.Arguments
- unsigned int timestamp - Timestamp of the event.
- const Math::ivec2 & mouse_pos - Position of the mouse.
- const Math::ivec2 & scroll - Vector containing the amount scrolled horizontally (x), positive to the right and negative to the left, and the amount scrolled vertically (y), positive away from the user and negative towards the user.
void setScroll ( const Math::ivec2 & scroll ) #
Sets the delta of the mouse scroll movement.Arguments
- const Math::ivec2 & scroll - Vector containing the amount scrolled horizontally (x), positive to the right and negative to the left, and the amount scrolled vertically (y), positive away from the user and negative towards the user.
Math::ivec2 getScroll ( ) const#
Returns the delta of the mouse scroll movement.Return value
Vector containing the amount scrolled horizontally (x), positive to the right and negative to the left, and the amount scrolled vertically (y), positive away from the user and negative towards the user.Last update:
2022-07-19
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)