![]() |
Blamite Game Engine - blam!
00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
|
#include "keyboard.h"
#include <vector>
#include "components/core/events/events/CharacterInput/CharacterInputEvent.h"
#include "components/core/events/events/KeyPress/KeyPressEvent.h"
#include "components/core/events/events.h"
Functions | |
bool | isSpecialKey (WPARAM virtual_key) |
Checks if the provided virtual key is found within the list of special keys. More... | |
bool | isRegularKey (WPARAM virtual_key) |
Determines whether or not the provided key is found in the list of normal characters. More... | |
bool | isRegularKey (char character) |
Determines whether or not the provided key is found in the list of normal characters. More... | |
Variables | |
std::vector< int > | special_keys |
List of all special keys, or non-alphanumeric keys to be handled from the WM_KEYDOWN message. More... | |
std::vector< char > | normal_chars |
List of all standard characters to be handled from the WM_CHAR message. More... | |
std::vector< SDL_Keycode > | active_keys = {} |
bool | lock_keystate = false |
bool isRegularKey | ( | char | character | ) |
Determines whether or not the provided key is found in the list of normal characters.
virtual_key | - The character recieved by the WM_CHAR message. |
bool isRegularKey | ( | WPARAM | virtual_key | ) |
Determines whether or not the provided key is found in the list of normal characters.
virtual_key | - The character recieved by the WM_CHAR message. |
bool isSpecialKey | ( | WPARAM | virtual_key | ) |
Checks if the provided virtual key is found within the list of special keys.
virtual_key | - The virtual key code. |
std::vector<SDL_Keycode> active_keys = {} |
bool lock_keystate = false |
std::vector<char> normal_chars |
List of all standard characters to be handled from the WM_CHAR message.
std::vector<int> special_keys |
List of all special keys, or non-alphanumeric keys to be handled from the WM_KEYDOWN message.