![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
#include <Keyboard.hpp>
Classes | |
struct | Modifier |
Public Types | |
enum | Key { Unknown, Space, Apostrophe, Comma, Minus, Period, Slash, Zero, One, Two, Three, Four, Five, Six, Seven, Eight, Nine, Semicolon, Equal, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, LBracket, Backslash, RBracket, GraveAccent, World1, World2, Escape, Enter, Tab, Backspace, Insert, Delete, Right, Left, Down, Up, PgUp, PgDown, Home, End, CapsLock, ScrollLock, NumLock, PrintScreen, Pause, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, KeypadZero, KeypadOne, KeypadTwo, KeypadThree, KeypadFour, KeypadFive, KeypadSix, KeypadSeven, KeypadEight, KeypadNine, KeypadDecimal, KeypadDivide, KeypadMultiply, KeypadSubtract, KeypadAdd, KeypadEnter, KeypadEqual, LShift, LControl, LAlt, LSuper, RShift, RControl, RAlt, RSuper, Menu } |
Static Public Member Functions | |
static std::string | getKeyName (const int scanCode) |
Get the key name in the current locale. More... | |
static bool | isKeyDown (const Key key) |
Check if a key is currently down. More... | |
static void | showVirtualKeyboard (const bool show) |
Shows or hides the virtual keyboard. More... | |
Definition at line 35 of file Keyboard.hpp.
enum jop::Keyboard::Key |
Keyboard keys
Definition at line 41 of file Keyboard.hpp.
|
static |
Get the key name in the current locale.
scanCode | The scan code |
|
static |
Check if a key is currently down.
key | The keyboard key |
|
static |
Shows or hides the virtual keyboard.
This only works on Android.
show | True to show, false to hide |