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. More...
 
unsigned int key = 0
 Key symbol: KEY(...) macro value or virtual key VIRTUAL_... (from common/key.h) More...
 
InputSlot slot = INPUT_SLOT_MAX
 Input binding slot for this key. More...
 

Detailed Description

Additional data for keyboard event.

Member Data Documentation

bool KeyEventData::virt = false

If true, the key is a virtual code generated by certain key modifiers or joystick buttons.

unsigned int KeyEventData::key = 0

Key symbol: KEY(...) macro value or virtual key VIRTUAL_... (from common/key.h)

InputSlot KeyEventData::slot = INPUT_SLOT_MAX

Input binding slot for this key.


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