Skylicht Engine
Loading...
Searching...
No Matches
irr::SEvent::SMouseInput Struct Reference

Any kind of mouse event. More...

#include <C:/Projects/skylicht-engine/Projects/Irrlicht/Include/IEventReceiver.h>

Public Member Functions

bool isLeftPressed () const
 Is the left button pressed down?
bool isRightPressed () const
 Is the right button pressed down?
bool isMiddlePressed () const
 Is the middle button pressed down?

Public Attributes

s32 X
 X position of mouse cursor.
s32 Y
 Y position of mouse cursor.
s32 ID
 ID of the touch.
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.

Detailed Description

Any kind of mouse event.

Member Data Documentation

◆ ButtonStates

u32 irr::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

◆ Wheel

f32 irr::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


The documentation for this struct was generated from the following file: