Cogs.Core
Public Types | Public Attributes | List of all members
Cogs::Keyboard::Event Struct Reference

Public Types

enum class  Type { Press , Release , AddChar , Reset }
 

Public Attributes

Type type
 Event type.
 
double timestamp_ms
 Timestamp in miliseconds.
 
std::variant< Key, std::string > data
 Data associated with the event: Key for Press and Release events, std::string for AddChar events and no data for Reset events.
 

Detailed Description

Definition at line 55 of file Keyboard.h.

Member Enumeration Documentation

◆ Type

enum class Cogs::Keyboard::Event::Type
strong

Definition at line 56 of file Keyboard.h.

Member Data Documentation

◆ data

std::variant<Key, std::string> Cogs::Keyboard::Event::data

Data associated with the event: Key for Press and Release events, std::string for AddChar events and no data for Reset events.

Definition at line 67 of file Keyboard.h.

Referenced by Cogs::Core::EventBasedInput::handleKeyboardEvent().

◆ timestamp_ms

double Cogs::Keyboard::Event::timestamp_ms

Timestamp in miliseconds.

Definition at line 64 of file Keyboard.h.

Referenced by Cogs::Core::EventBasedInput::handleKeyboardEvent().

◆ type

Type Cogs::Keyboard::Event::type

Event type.

Definition at line 63 of file Keyboard.h.

Referenced by Cogs::Core::EventBasedInput::handleKeyboardEvent().


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