![]() |
Blamite Game Engine - Strings
00402.09.29.23.0627.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Class representing a virtual key press. More...
#include <KeyPressEvent.h>
Public Member Functions | |
KeyPressEvent (SDL_Keycode _vk) | |
Constructs a new event. More... | |
int | GetVirtualKey () |
Retrieves the virtual key code that was pressed. More... | |
![]() | |
BlamEvent (BlamEventType type) | |
Constructs a new event with the specified type. More... | |
BlamEventType | GetEventType () |
Retrieves the type of the event. More... | |
void | SetCancelled (bool cancel) |
Sets whether or not the event should be cancelled. More... | |
bool | IsCancelled () |
Determines whether or not the event has been cancelled. More... | |
Class representing a virtual key press.
This event is fired from the WM_KEYDOWN
message.
KeyPressEvent::KeyPressEvent | ( | SDL_Keycode | _vk | ) |
Constructs a new event.
_vk | - The virtual key code. |
int KeyPressEvent::GetVirtualKey | ( | ) |
Retrieves the virtual key code that was pressed.