Cogs.Core
Public Types | Public Attributes | List of all members
Cogs::Gesture::Swipe Struct Reference

Public Types

enum  Direction { Left , Right , Up , Down }
 

Public Attributes

MouseButton button
 Button that was tapped.
 
Direction direction
 Swipe general direction.
 
glm::vec2 startCoord = {}
 Pointer position when the gesture has started.
 
float velocity
 Pointer velocity relative to startCoord.
 

Detailed Description

Definition at line 52 of file Gestures.h.

Member Enumeration Documentation

◆ Direction

enum Cogs::Gesture::Swipe::Direction

Definition at line 54 of file Gestures.h.

Member Data Documentation

◆ button

MouseButton Cogs::Gesture::Swipe::button

Button that was tapped.

Definition at line 61 of file Gestures.h.

◆ direction

Direction Cogs::Gesture::Swipe::direction

Swipe general direction.

Definition at line 62 of file Gestures.h.

◆ startCoord

glm::vec2 Cogs::Gesture::Swipe::startCoord = {}

Pointer position when the gesture has started.

Definition at line 63 of file Gestures.h.

◆ velocity

float Cogs::Gesture::Swipe::velocity

Pointer velocity relative to startCoord.

Definition at line 64 of file Gestures.h.


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