Elaztek Developer Hub
Blamite Game Engine - Strings  00390.07.02.23.1947.blamite
A library containing general purpose utilities and classes for use in multiple projects.
KeyPressEvent Class Reference

Class representing a virtual key press. More...

#include <KeyPressEvent.h>

+ Inheritance diagram for KeyPressEvent:
+ Collaboration diagram for KeyPressEvent:

Public Member Functions

 KeyPressEvent (SDL_Keycode _vk)
 Constructs a new event. More...
 
int GetVirtualKey ()
 Retrieves the virtual key code that was pressed. More...
 
- Public Member Functions inherited from BlamEvent
 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...
 

Detailed Description

Class representing a virtual key press.

This event is fired from the WM_KEYDOWN message.

Constructor & Destructor Documentation

◆ KeyPressEvent()

KeyPressEvent::KeyPressEvent ( SDL_Keycode  _vk)

Constructs a new event.

Parameters
_vk- The virtual key code.

Member Function Documentation

◆ GetVirtualKey()

int KeyPressEvent::GetVirtualKey ( )

Retrieves the virtual key code that was pressed.

Returns
The virtual key code.

The documentation for this class was generated from the following files: