diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-01-08 12:33:41 +1030 |
---|---|---|
committer | Peter Hutterer <whot@hyena.localdomain> | 2007-01-08 12:33:41 +1030 |
commit | 3b84ea85ace4dc9fe1caf7d7c45c0c51ee35b4b2 (patch) | |
tree | b67f23517820b8b2109f2c300293594aefd6166b | |
parent | cc055ae804f4dfd8b09b8993673b4670e5cf61ce (diff) |
add ChangeDeviceCursor request
-rw-r--r-- | Changelog | 7 | ||||
-rw-r--r-- | XI.h | 1 | ||||
-rw-r--r-- | XInput.h | 14 | ||||
-rw-r--r-- | XIproto.h | 18 |
4 files changed, 38 insertions, 2 deletions
@@ -1,7 +1,10 @@ MPX changelog +== 08.01.07 == + add ChangeDeviceCursor request + == 20.12.06 == -add QueryDevicePointer request + reply -add WarpDevicePointer request + add QueryDevicePointer request + reply + add WarpDevicePointer request @@ -113,6 +113,7 @@ SOFTWARE. #define sz_xQueryDevicePointerReq 12 #define sz_xQueryDevicePointerReply 32 #define sz_xWarpDevicePointerReq 28 +#define sz_xChangeDeviceCursorReq 16 #define INAME "XInputExtension" @@ -1209,6 +1209,20 @@ extern Bool XQueryDevicePointer( Bool* /* shared */ ); +extern Status XDefineDeviceCursor( + Display* /* display */, + XDevice* /* device */, + Window /* win */, + Cursor /* cursor */ +); + +extern Status XUndefineDeviceCursor( + Display* /* display */, + XDevice* /* device */, + Window /* win */ +); + + _XFUNCPROTOEND #endif /* _XINPUT_H_ */ @@ -158,6 +158,7 @@ struct tmask #define X_ChangeDeviceControl 35 #define X_QueryDevicePointer 36 #define X_WarpDevicePointer 37 +#define X_ChangeDeviceCursor 38 /********************************************************* * @@ -1473,6 +1474,23 @@ typedef struct { CARD16 pad1 B16; } xWarpDevicePointerReq; +/********************************************************** + * + * ChangeDeviceCursor. + * + */ + +typedef struct { + CARD8 reqType; /* input extension major code */ + CARD8 ReqType; /* always X_ChangeDeviceCursor */ + CARD16 length B16; + Window win B32; + Cursor cursor B32; + CARD8 deviceid; + CARD8 pad0; + CARD16 pad1; +} xChangeDeviceCursorReq; + /********************************************************** * |