Elaztek Developer Hub
Blamite Game Engine - Strings  00386.06.16.23.0646.blamite
A library containing general purpose utilities and classes for use in multiple projects.
KeyPressEvent.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../../BlamEvent.h"
4 
5 #include <sdl2/SDL_keyboard.h>
6 
7 #ifdef STRINGS_EXPORTS
8 #define STRINGS_API __declspec(dllexport)
9 #else
10 #define STRINGS_API __declspec(dllimport)
11 #endif
12 
19 {
20 private:
21  SDL_Keycode key;
22 
23 public:
29  KeyPressEvent(SDL_Keycode _vk);
30 
36  int GetVirtualKey();
37 };
STRINGS_API
#define STRINGS_API
Definition: KeyPressEvent.h:10
KeyPressEvent
Class representing a virtual key press.
Definition: KeyPressEvent.h:18
BlamEvent
Class representing a generic event.
Definition: BlamEvent.h:33
KeyPressEvent::GetVirtualKey
int GetVirtualKey()
Retrieves the virtual key code that was pressed.
Definition: KeyPressEvent.cpp:8
BlamEventType::KeyPress
@ KeyPress
Indicates the event is a key press event. See KeyPressEvent for details.
KeyPressEvent::KeyPressEvent
KeyPressEvent(SDL_Keycode _vk)
Constructs a new event.
Definition: KeyPressEvent.cpp:3
BlamEventType
BlamEventType
Enumerator listing all possible event types.
Definition: BlamEvent.h:12
KeyPressEvent.h