arsa  2.7
Public Member Functions | Public Attributes | List of all members
irr::SEvent::SMouseInput Struct Reference

Any kind of mouse event. More...

#include <IEventReceiver.h>

Public Member Functions

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

Public Attributes

s32 X
 X position of mouse cursor. More...
 
s32 Y
 Y position of mouse cursor. More...
 
f32 Wheel
 mouse wheel delta, often 1.0 or -1.0, but can have other values < 0.f or > 0.f; More...
 
bool Shift:1
 True if shift was also pressed. More...
 
bool Control:1
 True if ctrl was also pressed. More...
 
u32 ButtonStates
 
EMOUSE_INPUT_EVENT Event
 Type of mouse event. More...
 

Detailed Description

Any kind of mouse event.

Definition at line 357 of file IEventReceiver.h.

Member Function Documentation

◆ isLeftPressed()

bool irr::SEvent::SMouseInput::isLeftPressed ( ) const
inline

Is the left button pressed down?

Definition at line 381 of file IEventReceiver.h.

◆ isMiddlePressed()

bool irr::SEvent::SMouseInput::isMiddlePressed ( ) const
inline

Is the middle button pressed down?

Definition at line 387 of file IEventReceiver.h.

◆ isRightPressed()

bool irr::SEvent::SMouseInput::isRightPressed ( ) const
inline

Is the right button pressed down?

Definition at line 384 of file IEventReceiver.h.

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

Definition at line 378 of file IEventReceiver.h.

◆ Control

bool irr::SEvent::SMouseInput::Control

True if ctrl was also pressed.

Definition at line 373 of file IEventReceiver.h.

◆ Event

EMOUSE_INPUT_EVENT irr::SEvent::SMouseInput::Event

Type of mouse event.

Definition at line 390 of file IEventReceiver.h.

◆ Shift

bool irr::SEvent::SMouseInput::Shift

True if shift was also pressed.

Definition at line 370 of file IEventReceiver.h.

◆ 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

Definition at line 367 of file IEventReceiver.h.

◆ X

s32 irr::SEvent::SMouseInput::X

X position of mouse cursor.

Definition at line 360 of file IEventReceiver.h.

◆ Y

s32 irr::SEvent::SMouseInput::Y

Y position of mouse cursor.

Definition at line 363 of file IEventReceiver.h.


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