Lysa  0.0
Lysa 3D Engine
InputEventKey Class Reference

Detailed Description

Keyboard input event

+ Inheritance diagram for InputEventKey:

Public Member Functions

 InputEventKey (const Key key, const bool pressed, const int repeat, const int modifiers)
 
Key getKey () const
 
auto getRepeatCount () const
 
auto isPressed () const
 
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
 

Additional Inherited Members

- Protected Member Functions inherited from InputEvent
 InputEvent (const InputEventType type)
 

Constructor & Destructor Documentation

InputEventKey ( const Key  key,
const bool  pressed,
const int  repeat,
const int  modifiers 
)
inline

Member Function Documentation

Key getKey ( ) const
inline

Returns the key code

auto getModifiers ( ) const
inline

Returns the state of the z0::KeyModifier keys

auto getRepeatCount ( ) const
inline

The repeat count for the current event. The value is the number of times the keystroke is auto-repeated as a result of the user holding down the key

auto isPressed ( ) const
inline

Returns true if the key is pressed