1// 2// kb_mouse_driver.h 3// 4#ifndef _TOUCHPAD_DRIVER_H 5#define _TOUCHPAD_DRIVER_H 6 7#include <SupportDefs.h> 8#include <Drivers.h> 9 10#ifdef __cplusplus 11extern "C" { 12#endif 13 14#define B_ONE_FINGER 0x01 15#define B_TWO_FINGER 0x02 16#define B_MULTI_FINGER 0x04 17#define B_PEN 0x08 18 19typedef struct { 20 uint8 buttons; 21 uint32 xPosition; 22 uint32 yPosition; 23 uint8 zPressure; 24 uint8 fingers; 25 bool gesture; 26 uint8 fingerWidth; 27 // 1 - 4 normal width 28 // 5 - 11 very wide finger or palm 29 // 12 maximum reportable width; extrem wide contact 30} touchpad_movement; 31 32 33#ifdef __cplusplus 34} 35#endif 36 37#endif 38 39