Lysa  0.0
Lysa 3D Engine
InputEventMouse Class Reference

Detailed Description

Base mouse event

+ Inheritance diagram for InputEventMouse:

Public Member Functions

auto getPosition () const
 
auto getX () const
 
auto getY () const
 
auto getButtonsState ()
 
auto getModifiers () const
 
- Public Member Functions inherited from InputEvent
InputEventType getType () const
 
- Public Member Functions inherited from Object
void connect (const Signal::signal &name, const Signal::Handler &handler)
 
void connect (const Signal::signal &name, const std::function< void ()> &handler)
 
void emit (const Signal::signal &name, void *params=nullptr)
 
virtual std::string toString () const
 
 Object () = default
 
virtual ~Object () = default
 

Protected Member Functions

 InputEventMouse (const InputEventType type, const uint32 buttonsState, const int modifiers, const float posX, const float posY)
 
- Protected Member Functions inherited from InputEvent
 InputEvent (const InputEventType type)
 

Constructor & Destructor Documentation

InputEventMouse ( const InputEventType  type,
const uint32  buttonsState,
const int  modifiers,
const float  posX,
const float  posY 
)
inlineprotected

Member Function Documentation

auto getButtonsState ( )
inline

Returns the mouse button states (which button is down)

auto getModifiers ( ) const
inline

Returns the state of the z0::KeyModifier keys

auto getPosition ( ) const
inline

Returns the current mouse position

auto getX ( ) const
inline

Returns the current mouse x position

auto getY ( ) const
inline

Returns the current mouse y position