0.44.0
|
#include <iKeyboard.h>
Inherits igor::iOSEventListener, and igor::iModule< iKeyboard >.
Public Member Functions | |
bool | getKey (iKeyCode keyCode) |
bool | keyPressed () |
iWindowPtr | getWindow () const override |
Public Member Functions inherited from igor::iOSEventListener | |
iOSEventListener ()=default | |
virtual | ~iOSEventListener ()=default |
virtual iWindowPtr | getWindow () const =0 |
Static Public Member Functions | |
static iKeyCode | getKeyCode (const iaString &keyname) |
Static Public Member Functions inherited from igor::iModule< iKeyboard > | |
static IGOR_INLINE iKeyboard & | getInstance () |
static IGOR_INLINE bool | isInstantiated () |
static void | create () |
static void | destroy () |
Friends | |
class | iModule< iKeyboard > |
Additional Inherited Members | |
Protected Member Functions inherited from igor::iModule< iKeyboard > | |
iModule ()=default | |
virtual | ~iModule ()=default |
Handles keyboard specific os events and triggers Igor events.
It also stores key states for later use
bool igor::iKeyboard::getKey | ( | iKeyCode | keyCode | ) |
you should not use that. better style is to use events
keyCode | the specified key |
returns key code
keycode | key name |
|
overridevirtual |
\retruns pointer to corresponding window if it returns nullptr the listener was not registred to a window yet
Implements igor::iOSEventListener.
bool igor::iKeyboard::keyPressed | ( | ) |
you should not use that. better style is to use events