Cogs.Foundation
Loading...
Searching...
No Matches
Public Types | Public Attributes | List of all members
Cogs::Keyboard::Event Struct Reference

#include <Keyboard.h>

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.
 

Member Enumeration Documentation

◆ Type

enum class Cogs::Keyboard::Event::Type
strong
Enumerator
Press 
Release 
AddChar 
Reset 

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.

◆ timestamp_ms

double Cogs::Keyboard::Event::timestamp_ms

Timestamp in miliseconds.

◆ type

Type Cogs::Keyboard::Event::type

Event type.


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