Blamite Game Engine - blam!  00272.10.26.20.0001.blamite
The core library for the Blamite Game Engine.
Blam::Events::KeyPressEvent Class Reference

Class representing a virtual key press. More...

#include <KeyPressEvent.hpp>

+ Inheritance diagram for Blam::Events::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 Blam::Events::Event
EventType 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...
 

Additional Inherited Members

- Public Attributes inherited from Blam::Events::Event
EventType event_type
 The type of the event. More...
 

Detailed Description

Class representing a virtual key press.

This event is fired from the WM_KEYDOWN message.

Constructor & Destructor Documentation

◆ KeyPressEvent()

Blam::Events::KeyPressEvent::KeyPressEvent ( SDL_Keycode  _vk)
inline

Constructs a new event.

Parameters
_vk- The virtual key code.

Member Function Documentation

◆ GetVirtualKey()

int Blam::Events::KeyPressEvent::GetVirtualKey ( )
inline

Retrieves the virtual key code that was pressed.

Returns
The virtual key code.

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