![]() |
Norbert's Game Engine v200
|
#include <Keyboard.hpp>
Public Member Functions | |
| const bool | GetKeyPressed (const int key) |
| const bool | GetKeyDown (const int key) |
| const bool | GetKeyReleased (const int key) |
| const int | GetScancode (const int key) |
| const int | GetKeyState (const int key) |
| const bool | CheckKeyState (const int keyState, const int mode) |
| void | SetStickyMode (const int vl) |
| const bool | GetAnyKeyDown () |
| const bool | GetAnyKeyPressed () |
| void | SetCharCallback (NGE_KEYBOARD_CHARCALLBACK callback) |
| void | SetKeyCallback (NGE_KEYBOARD_KEYCALLBACK callback) |
| const char * | GetKeyName (const int key, const int scancode) |
Public Member Functions inherited from eInput | |
| void | SetWindow (eWindow *window) |
| eWindow * | GetWindow () |
| GLFWwindow * | GetGLFWwindow () |
| void | SetInputMode (const int mode, const int value) |
Public Member Functions inherited from eBase | |
| template<typename T > | |
| T * | Cast (eBase *obj) |
| Cast class to base. | |
Keyboard input
Use macro 'NGE_INPUT_KEYBOARD_LAYOUT_GERMAN' before including this file to switch the z and y key for german keyboard layout!
Definition at line 150 of file Keyboard.hpp.
| const bool eKeyboard::CheckKeyState | ( | const int | keyState, |
| const int | mode ) |
Definition at line 84 of file Keyboard.cpp.
| const bool eKeyboard::GetAnyKeyDown | ( | ) |
Definition at line 61 of file Keyboard.cpp.
| const bool eKeyboard::GetAnyKeyPressed | ( | ) |
Definition at line 71 of file Keyboard.cpp.
| const bool eKeyboard::GetKeyDown | ( | const int | key | ) |
Definition at line 37 of file Keyboard.cpp.
| const char * eKeyboard::GetKeyName | ( | const int | key, |
| const int | scancode ) |
Definition at line 106 of file Keyboard.cpp.
| const bool eKeyboard::GetKeyPressed | ( | const int | key | ) |
Definition at line 6 of file Keyboard.cpp.
| const bool eKeyboard::GetKeyReleased | ( | const int | key | ) |
Definition at line 44 of file Keyboard.cpp.
| const int eKeyboard::GetKeyState | ( | const int | key | ) |
Definition at line 56 of file Keyboard.cpp.
| const int eKeyboard::GetScancode | ( | const int | key | ) |
Definition at line 51 of file Keyboard.cpp.
| void eKeyboard::SetCharCallback | ( | NGE_KEYBOARD_CHARCALLBACK | callback | ) |
Definition at line 96 of file Keyboard.cpp.
| void eKeyboard::SetKeyCallback | ( | NGE_KEYBOARD_KEYCALLBACK | callback | ) |
Definition at line 101 of file Keyboard.cpp.
| void eKeyboard::SetStickyMode | ( | const int | vl | ) |
Definition at line 91 of file Keyboard.cpp.