Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
nirt::SEvent::SMouseInput Class Reference

Any kind of mouse event. More...

#include <nirtcpp/core/engine/IEventReceiver.hpp>

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.
 
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 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

◆ Wheel

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


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

Nirtcpp    @cppfx.xyz

Utxcpp    utx::print