Colobot
Public Member Functions | Public Attributes | List of all members
KeyEventData Struct Reference

Additional data for keyboard event. More...

#include <event.h>

Inheritance diagram for KeyEventData:
Inheritance graph
[legend]

Public Member Functions

std::unique_ptr< EventDataClone () const override
 

Public Attributes

bool virt = false
 If true, the key is a virtual code generated by certain key modifiers or joystick buttons.
 
unsigned int key = 0
 Key symbol: KEY(...) macro value or virtual key VIRTUAL_... (from common/key.h)
 
unsigned int unicode = 0
 
InputSlot slot = INPUT_SLOT_LEFT
 Input binding slot for this key.
 

Detailed Description

Additional data for keyboard event.

Member Data Documentation

unsigned int KeyEventData::unicode = 0

Unicode character NOTE: applicable only to EVENT_KEY_DOWN events!


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