Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
EventKeyboard Class Reference

Keyboard event. More...

#include <EventKeyboard.h>

Inherits Event.

Public Types

enum class  KeyCode
 KeyCode The key (code). More...
 
- Public Types inherited from Event
enum class  Type
 Type Event type.
 

Public Member Functions

 EventKeyboard (KeyCode keyCode, bool isPressed)
 Constructor.
 
- Public Member Functions inherited from Event
 Event (Type type)
 Constructor.
 
virtual ~Event ()
 Destructor.
 
Type getType () const
 Gets the event type.
 
void stopPropagation ()
 Stops propagation for current event.
 
bool isStopped () const
 Checks whether the event has been stopped.
 
NodegetCurrentTarget ()
 Gets current target of the event.
 
- Public Member Functions inherited from Object
void retain ()
 Retains the ownership.
 
void release ()
 Releases the ownership immediately.
 
Objectautorelease ()
 Releases the ownership sometime soon automatically.
 
unsigned int getReferenceCount () const
 Returns the Object's current reference count.
 
virtual ~Object ()
 Destructor.
 

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 

Detailed Description

Keyboard event.

Member Enumeration Documentation

◆ KeyCode

enum class KeyCode
strong

KeyCode The key (code).

@js NA

Constructor & Destructor Documentation

◆ EventKeyboard()

EventKeyboard ( KeyCode keyCode,
bool isPressed )

Constructor.

Parameters
keyCodeA given keycode.
isPressedTrue if the key is pressed. @js ctor

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