Pepper_47_C_interfaces
Public Attributes | List of all members
PP_TouchPoint Struct Reference

#include <pp_touch_point.h>

Collaboration diagram for PP_TouchPoint:
Collaboration graph

Public Attributes

uint32_t id
 
struct PP_FloatPoint position
 
struct PP_FloatPoint radius
 
float rotation_angle
 
float pressure
 

Detailed Description

The PP_TouchPoint struct represents all information about a single touch point, such as position, id, rotation angle, and pressure.

Definition at line 30 of file pp_touch_point.h.

Member Data Documentation

uint32_t PP_TouchPoint::id

This value represents the identifier for this TouchPoint. The id corresponds to the order in which the points were pressed. For example, the first point to be pressed has an id of 0, the second has an id of 1, and so on. An id can be reused when a touch point is released. For example, if two fingers are down, with id 0 and 1, and finger 0 releases, the next finger to be pressed can be assigned to id 0.

Definition at line 39 of file pp_touch_point.h.

struct PP_FloatPoint PP_TouchPoint::position

This value represents the x and y pixel position of this TouchPoint relative to the upper-left of the module instance receiving the event.

Definition at line 44 of file pp_touch_point.h.

float PP_TouchPoint::pressure

This value represents the pressure applied to this TouchPoint. This value is typically between 0 and 1, with 0 indicating no pressure and 1 indicating some maximum pressure. Scaling differs depending on the hardware and the value is not guaranteed to stay within that range.

Definition at line 61 of file pp_touch_point.h.

struct PP_FloatPoint PP_TouchPoint::radius

This value represents the elliptical radii, in screen pixels, in the x and y direction of this TouchPoint.

Definition at line 49 of file pp_touch_point.h.

float PP_TouchPoint::rotation_angle

This value represents the angle of rotation in degrees of the elliptical model of this TouchPoint clockwise from "up."

Definition at line 54 of file pp_touch_point.h.


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