![]() |
Blamite Game Engine - blam!
00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
|
Functions | |
BLAM int | HandleCharacterInput (WPARAM wParam) |
Handles character based input. More... | |
BLAM int | HandleKeyPress (WPARAM wParam) |
Handles virtual key based input. More... | |
BLAM void | FireKeyPress (SDL_Keycode key) |
Fires a key press event. More... | |
BLAM void | FireCharacterInput (char character) |
Fires a character input event. More... | |
BLAM void | SetKeyState (SDL_Keycode key, bool down) |
BLAM bool | IsKeyDown (SDL_Keycode key) |
BLAM void | FireMouseClick (uint8_t button) |
BLAM void | FireMouseMove (int x, int y) |
BLAM void | SetMouseButtonState (uint8_t button, bool down) |
BLAM bool | IsMouseButtonDown (uint8_t button) |
void Blam::Input::FireCharacterInput | ( | char | character | ) |
Fires a character input event.
character | - The character that was pressed. |
void Blam::Input::FireKeyPress | ( | SDL_Keycode | key | ) |
Fires a key press event.
key | - The virtual key code that was pressed. |
void Blam::Input::FireMouseClick | ( | uint8_t | button | ) |
void Blam::Input::FireMouseMove | ( | int | x, |
int | y | ||
) |
int Blam::Input::HandleCharacterInput | ( | WPARAM | wParam | ) |
Handles character based input.
Recieved from the WM_CHAR
message.
wParam | - The wParam from the Main window procedure, contains the character that was pressed. |
0
int Blam::Input::HandleKeyPress | ( | WPARAM | wParam | ) |
Handles virtual key based input.
Recieved from the WM_KEYDOWN
message.
wParam | - The wParam from the Main window procedure, contains the virtual key code of the pressed key. |
0
bool Blam::Input::IsKeyDown | ( | SDL_Keycode | key | ) |
bool Blam::Input::IsMouseButtonDown | ( | uint8_t | button | ) |
void Blam::Input::SetKeyState | ( | SDL_Keycode | key, |
bool | down | ||
) |
void Blam::Input::SetMouseButtonState | ( | uint8_t | button, |
bool | down | ||
) |