gramods
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
gramods::gmTouch::TouchState::State Struct Reference

Touch states that can be bitwise combined (except NONE). More...

#include <TouchState.hh>

Collaboration diagram for gramods::gmTouch::TouchState::State:
Collaboration graph
[legend]

Static Public Attributes

static const unsigned char NONE = 0
 
static const unsigned char DRAG = 0x01 << 0
 Touch point has previosly been moved while down.
 
static const unsigned char HOLD = 0x01 << 1
 Touch point was held still while first pressed.
 
static const unsigned char MULTI = 0x01 << 2
 Touch point is a "double" click, or more.
 
static const unsigned char TOUCH_DOWN = 0x01 << 3
 Touch point is newly down this frame.
 
static const unsigned char RELEASE = 0x01 << 4
 Touch point was released.
 
static const unsigned char CLICK = 0x01 << 5
 Touch point was a short click - pressed and depressed at the same spot within a short period of time.
 

Detailed Description

Touch states that can be bitwise combined (except NONE).

Check with bitwise AND, e g if (tp.state & State::DRAG).

Member Data Documentation

◆ CLICK

const unsigned char gramods::gmTouch::TouchState::State::CLICK = 0x01 << 5
static

Touch point was a short click - pressed and depressed at the same spot within a short period of time.

◆ DRAG

const unsigned char gramods::gmTouch::TouchState::State::DRAG = 0x01 << 0
static

Touch point has previosly been moved while down.

◆ HOLD

const unsigned char gramods::gmTouch::TouchState::State::HOLD = 0x01 << 1
static

Touch point was held still while first pressed.

◆ MULTI

const unsigned char gramods::gmTouch::TouchState::State::MULTI = 0x01 << 2
static

Touch point is a "double" click, or more.

See also
TouchState::TouchPoint::clicks

◆ RELEASE

const unsigned char gramods::gmTouch::TouchState::State::RELEASE = 0x01 << 4
static

Touch point was released.

◆ TOUCH_DOWN

const unsigned char gramods::gmTouch::TouchState::State::TOUCH_DOWN = 0x01 << 3
static

Touch point is newly down this frame.

A multi click touch point will also be considered newly down.


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