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

#include <Mouse.h>

Classes

struct  ButtonData
 
struct  MoveData
 
struct  WheelData
 

Public Types

enum class  Type {
  Press , Release , Move , Wheel ,
  Reset
}
 

Public Attributes

Type type
 Event type.
 
double timestamp_ms
 Timestamp in miliseconds.
 
glm::ivec2 currPosition
 Mouse position at the event.
 
std::variant< ButtonData, MoveData, WheelDatadata
 

Member Enumeration Documentation

◆ Type

enum class Cogs::Mouse::Event::Type
strong
Enumerator
Press 
Release 
Move 
Wheel 
Reset 

Member Data Documentation

◆ currPosition

glm::ivec2 Cogs::Mouse::Event::currPosition

Mouse position at the event.

◆ data

std::variant<ButtonData, MoveData, WheelData> Cogs::Mouse::Event::data

Data associated with the event: ButtonData for Press and Release events, MoveData for Move events, WheelData for Wheel events and no data for Reset events.

◆ timestamp_ms

double Cogs::Mouse::Event::timestamp_ms

Timestamp in miliseconds.

◆ type

Type Cogs::Mouse::Event::type

Event type.


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