mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
qbt: Add support for touch events from input framework
Add changes to get touch events from input framework and perform AoI and radius filtering. AoI info is passed by userspace using ioctl. Change-Id: Iabedc175d06f123d540d64806cbfb2ce31c3acfe Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
This commit is contained in:
parent
a6ae9f824c
commit
896b76e681
2 changed files with 337 additions and 123 deletions
|
|
@ -18,6 +18,9 @@
|
|||
#define QBT_ACQUIRE_WAKELOCK 107
|
||||
#define QBT_RELEASE_WAKELOCK 108
|
||||
|
||||
#define QBT_GET_TOUCH_FD_VERSION 109
|
||||
#define QBT_CONFIGURE_TOUCH_FD_V2 110
|
||||
|
||||
/*
|
||||
* enum qbt_finger_events -
|
||||
* enumeration of qbt finger events
|
||||
|
|
@ -77,4 +80,38 @@ struct qbt_touch_config {
|
|||
int rad_y;
|
||||
};
|
||||
|
||||
/*
|
||||
* struct qbt_touch_fd_version -
|
||||
* used to get touch finger detect version
|
||||
* @version: version number
|
||||
*/
|
||||
struct qbt_touch_fd_version {
|
||||
int version;
|
||||
};
|
||||
|
||||
/*
|
||||
* struct qbt_touch_config_v2 -
|
||||
* used to configure touch finger detect
|
||||
* @version - touch FD version
|
||||
* @touch_fd_enable - flag to enable/disable touch finger detect
|
||||
* @rad_filter_enable - flag to enable/disable radius based filtering
|
||||
* @left - x-coordinate of top left corner of AOI
|
||||
* @top - y-coordinate of top left corner of AOI
|
||||
* @right - x-coordinate of bottom right corner of AOI
|
||||
* @bottom - y--coordinate of bottom right corner of AOI
|
||||
* @rad_x: movement radius in x direction
|
||||
* @rad_y: movement radius in y direction
|
||||
*/
|
||||
struct qbt_touch_config_v2 {
|
||||
struct qbt_touch_fd_version version;
|
||||
_Bool touch_fd_enable;
|
||||
_Bool rad_filter_enable;
|
||||
int left;
|
||||
int top;
|
||||
int right;
|
||||
int bottom;
|
||||
int rad_x;
|
||||
int rad_y;
|
||||
};
|
||||
|
||||
#endif /* _UAPI_QBT_HANDLER_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue