mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-23 12:38:54 +00:00
31 lines
595 B
C
31 lines
595 B
C
|
|
|
||
|
|
#ifndef __HID_CONTROL_H__
|
||
|
|
#define __HID_CONTROL_H__
|
||
|
|
|
||
|
|
#include "bt_api.h"
|
||
|
|
|
||
|
|
typedef enum {
|
||
|
|
TP_STATUS_NONE = 0,
|
||
|
|
TP_STATUS_UP,
|
||
|
|
TP_STATUS_DOWN,
|
||
|
|
TP_STATUS_MOVE,
|
||
|
|
}TP_STATUS_T;
|
||
|
|
|
||
|
|
typedef struct {
|
||
|
|
u16 x;
|
||
|
|
u16 y;
|
||
|
|
}coordinate_t;
|
||
|
|
|
||
|
|
// typedef struct {
|
||
|
|
// coordinate_t pointer;
|
||
|
|
// TP_STATUS_T status;
|
||
|
|
// }action_t;
|
||
|
|
|
||
|
|
int bt_hid_device_init();
|
||
|
|
int bt_hid_device_deinit();
|
||
|
|
int bt_hid_set_resolution(coordinate_t *device_resolu, coordinate_t *host_resolu);
|
||
|
|
int bt_hid_set_touch_event(int status, u16 x_device, u16 y_device);
|
||
|
|
// int bt_hid_set_touch_event(action_t *action);
|
||
|
|
|
||
|
|
#endif
|