Elaztek Developer Hub
Switch Project...
blam!
Editing Kit
Guerilla
Sapien
Tool
Foundry
Libraries
Keystone
Strings
Forums
Discord
Doxygen
Jenkins
Guides
Gitlab
Blamite Game Engine - blam!
00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
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
12
class
KeyPressEvent
:
public
BlamEvent
13
{
14
private
:
15
SDL_Keycode key;
16
17
public
:
23
KeyPressEvent
(SDL_Keycode _vk);
24
30
int
GetVirtualKey
();
31
};
KeyPressEvent
Class representing a virtual key press.
Definition:
KeyPressEvent.h:12
BlamEvent
Class representing a generic event.
Definition:
BlamEvent.h:21
KeyPressEvent::GetVirtualKey
int GetVirtualKey()
Retrieves the virtual key code that was pressed.
Definition:
KeyPressEvent.cpp:8
KeyPressEvent::KeyPressEvent
KeyPressEvent(SDL_Keycode _vk)
Constructs a new event.
Definition:
KeyPressEvent.cpp:3
blam
components
core
events
events
KeyPress
KeyPressEvent.h
Generated on Sat Dec 11 2021 06:13:39 for Blamite Game Engine - blam! by
1.8.17