discoverpixy
Data Structures | Typedefs | Enumerations | Functions
touch.h File Reference
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for touch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  TOUCH_AREA_STRUCT
 
struct  POINT_STRUCT
 

Typedefs

typedef void(* TOUCH_CALLBACK) (void *touchArea, TOUCH_ACTION triggeredAction)
 

Enumerations

enum  TOUCH_STATE { TOUCH_UP, TOUCH_DOWN }
 
enum  TOUCH_ACTION {
  NONE = 0x00, PEN_DOWN = 0x01, PEN_UP = 0x02, PEN_ENTER = 0x04,
  PEN_LEAVE = 0x08, PEN_MOVE = 0x10
}
 

Functions

bool touch_init ()
 
bool touch_add_raw_event (uint16_t x, uint16_t y, TOUCH_STATE state)
 
bool touch_have_empty (unsigned char num)
 
bool touch_register_area (TOUCH_AREA_STRUCT *area)
 
void touch_unregister_area (TOUCH_AREA_STRUCT *area)
 
POINT_STRUCT touch_get_last_point ()
 
void touch_set_calibration_values (int xs, int dx, int ys, int dy)
 
void touch_set_value_convert_mode (bool use_calibration)