summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZephaniah E. Hull <warp@agamemnon.b5>2006-10-21 03:58:53 -0400
committerZephaniah E. Hull <warp@agamemnon.b5>2006-10-21 03:58:53 -0400
commitf53d49148757b4dd079d22869e8bea85a461b8c7 (patch)
treefd8726cac3e7c40624a056abeda3f114ac6f61e9
parent926251a486b57197d735a426887acad6fdfd7dc6 (diff)
downloadxorg-proto-inputproto-input-hotplug.tar.gz
DEVICE_TOUCHPAD -> DEVICE_ABS_CALIB.input-hotplug
As it's really calibration for absolute devices, add some stuff. DEVICE_ABS_AREA Defines the area of the screen that an absolute device covers if it is sending core events.
-rw-r--r--XI.h3
-rw-r--r--XInput.h16
-rw-r--r--XIproto.h48
3 files changed, 55 insertions, 12 deletions
diff --git a/XI.h b/XI.h
index b85797a..0e2e86e 100644
--- a/XI.h
+++ b/XI.h
@@ -158,8 +158,9 @@ SOFTWARE.
#define XI_Add_DevicePresenceNotify_Minor 4
#define DEVICE_RESOLUTION 1
-#define DEVICE_TOUCHSCREEN 2
+#define DEVICE_ABS_CALIB 2
#define DEVICE_CORE 3
+#define DEVICE_ABS_AREA 4
#define NoSuchExtension 1
diff --git a/XInput.h b/XInput.h
index 2f1fffb..8067238 100644
--- a/XInput.h
+++ b/XInput.h
@@ -664,8 +664,22 @@ typedef struct {
int max_x;
int min_y;
int max_y;
+ int flip_x;
+ int flip_y;
+ int rotation;
int button_threshold;
-} XDeviceTSControl, XDeviceTSState;
+} XDeviceAbsCalibControl, XDeviceAbsCalibState;
+
+typedef struct {
+ XID control;
+ int length;
+ int offset_x;
+ int offset_y;
+ int width;
+ int height;
+ int screen;
+ XID following;
+} XDeviceAbsAreaControl, XDeviceAbsAreaState;
typedef struct {
XID control;
diff --git a/XIproto.h b/XIproto.h
index ec2941b..69149a0 100644
--- a/XIproto.h
+++ b/XIproto.h
@@ -1294,12 +1294,26 @@ typedef struct {
typedef struct {
CARD16 control B16;
CARD16 length B16;
- CARD32 min_x;
- CARD32 max_x;
- CARD32 min_y;
- CARD32 max_y;
+ INT32 min_x;
+ INT32 max_x;
+ INT32 min_y;
+ INT32 max_y;
+ CARD32 flip_x;
+ CARD32 flip_y;
+ CARD32 rotation;
CARD32 button_threshold;
-} xDeviceTSState;
+} xDeviceAbsCalibState;
+
+typedef struct {
+ CARD16 control B16;
+ CARD16 length B16;
+ CARD32 offset_x;
+ CARD32 offset_y;
+ CARD32 width;
+ CARD32 height;
+ CARD32 screen;
+ CARD32 following;
+} xDeviceAbsAreaState;
typedef struct {
CARD16 control B16; /* control type */
@@ -1354,12 +1368,26 @@ typedef struct {
typedef struct {
CARD16 control B16;
CARD16 length B16;
- CARD32 min_x;
- CARD32 max_x;
- CARD32 min_y;
- CARD32 max_y;
+ INT32 min_x;
+ INT32 max_x;
+ INT32 min_y;
+ INT32 max_y;
+ CARD32 flip_x;
+ CARD32 flip_y;
+ CARD32 rotation;
CARD32 button_threshold;
-} xDeviceTSCtl;
+} xDeviceAbsCalibCtl;
+
+typedef struct {
+ CARD16 control B16;
+ CARD16 length B16;
+ CARD32 offset_x;
+ CARD32 offset_y;
+ INT32 width;
+ INT32 height;
+ INT32 screen;
+ CARD32 following;
+} xDeviceAbsAreaCtl;
typedef struct {
CARD16 control B16;