PebbleOS
Loading...
Searching...
No Matches
Data Structures | Enumerations
touch_event.h File Reference
#include <stdbool.h>
#include <stdint.h>

Data Structures

struct  TouchEvent
 Touch event data, carried directly in PebbleTouchEvent. More...
 

Enumerations

enum  TouchEventType { TouchEvent_Touchdown , TouchEvent_Liftoff , TouchEvent_PositionUpdate }
 Touch event type. More...
 

Data Structure Documentation

◆ TouchEvent

struct TouchEvent

Touch event data, carried directly in PebbleTouchEvent.

Data Fields
bool non_navigational true when the touch must not drive navigation: the interaction session was inactive at Touchdown (unarmed contact on the idle watchface).

Latched on Touchdown and carried across the whole gesture.

TouchEventType type: 8 Event type.
int16_t x Horizontal position, in screen pixels.
int16_t y Vertical position, in screen pixels.

Enumeration Type Documentation

◆ TouchEventType

Touch event type.

Enumerator
TouchEvent_Touchdown 

A finger touched the screen.

TouchEvent_Liftoff 

The finger left the screen.

TouchEvent_PositionUpdate 

The finger moved while touching the screen.