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

#include <Gestures.h>

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.
 

Member Enumeration Documentation

◆ Direction

Enumerator
Left 
Right 
Up 
Down 

Member Data Documentation

◆ button

MouseButton Cogs::Gesture::Swipe::button

Button that was tapped.

Referenced by Cogs::Gestures::pointerUp().

◆ direction

Direction Cogs::Gesture::Swipe::direction

Swipe general direction.

Referenced by Cogs::Gestures::pointerUp().

◆ startCoord

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

Pointer position when the gesture has started.

Referenced by Cogs::Gestures::pointerUp().

◆ velocity

float Cogs::Gesture::Swipe::velocity

Pointer velocity relative to startCoord.

Referenced by Cogs::Gestures::pointerUp().


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