ZeroZero Game Engine  v0.0
A 3D game engine using Vulkan & Jolt
Public Member Functions | List of all members
InputEventKey Class Reference

Detailed Description

Keyboard input event

Inheritance diagram for InputEventKey:
InputEvent Object

Public Member Functions

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 function< void ()> &handler)
 
void emit (const Signal::signal &name, void *params=nullptr)
 
virtual string toString () const
 

Member Function Documentation

Key getKey ( ) const
nodiscardinline

Returns the key code

auto getModifiers ( ) const
nodiscardinline

Returns the state of the z0::KeyModifier keys

auto getRepeatCount ( ) const
nodiscardinline

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
nodiscardinline

Returns true if the key is pressed