Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
|
Any kind of mouse event. More...
#include <nirtcpp/core/engine/IEventReceiver.hpp>
Public Attributes | |
s32 | X |
X position of mouse cursor. | |
s32 | Y |
Y position of mouse cursor. | |
f32 | Wheel |
mouse wheel delta, often 1.0 or -1.0, but can have other values < 0.f or > 0.f; | |
bool | Shift:1 |
True if shift was also pressed. | |
bool | Control:1 |
True if ctrl was also pressed. | |
u32 | ButtonStates |
EMOUSE_INPUT_EVENT | Event |
Type of mouse event. | |
Any kind of mouse event.
u32 nirt::SEvent::SMouseInput::ButtonStates |
A bitmap of button states. You can use isButtonPressed() to determine if a button is pressed or not. Currently only valid if the event was EMIE_MOUSE_MOVED
f32 nirt::SEvent::SMouseInput::Wheel |
mouse wheel delta, often 1.0 or -1.0, but can have other values < 0.f or > 0.f;
Only valid if event was EMIE_MOUSE_WHEEL