ASGE  3.2.0
Simple Game Framework in GL
ASGE::KeyEvent Struct Reference

#include <InputEvents.hpp>

Inheritance diagram for ASGE::KeyEvent:
[legend]
Collaboration diagram for ASGE::KeyEvent:
[legend]

Public Attributes

int key = -1
 
int scancode = -1
 
int action = -1
 
ASGE::KEYS::MODS mods = 0
 

Detailed Description

a key event

A key event provides any related information that can be used to drive a game.

See also
EventData

Definition at line 61 of file InputEvents.hpp.

Member Data Documentation

◆ action

int ASGE::KeyEvent::action = -1

Key action. A key has been pressed or released.

Definition at line 65 of file InputEvents.hpp.

◆ key

int ASGE::KeyEvent::key = -1

The key. The key in question.

Definition at line 63 of file InputEvents.hpp.

◆ mods

ASGE::KEYS::MODS ASGE::KeyEvent::mods = 0

Modifiers. Any modifiers applied i.e. ctrl, shift etc.

Definition at line 66 of file InputEvents.hpp.

◆ scancode

int ASGE::KeyEvent::scancode = -1

Scancode. The unique scancode used to to represent the character.

Definition at line 64 of file InputEvents.hpp.


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