diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2008-07-07 22:10:17 +0930 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2008-07-10 16:28:34 +0930 |
commit | 2039c6ea43244339659323d05d96c14e41996c20 (patch) | |
tree | 9f396ab16102d5b9199c439b39a087c8afd5247a /include/exevents.h | |
parent | 4ab01fe5db7fb330b1ec463aa49b77859527e597 (diff) |
Xi: add support for input device properties.
Basically just copied from randr properties, with minor changes only.
Each device supports arbitrary properties that can be modified by clients.
Modifications to the properties are passed to the driver (if applicable) and
can then affect the configuration of the device.
Note that device properties are limited to a specific device. A property set
on a slave device does not migrate to the master.
Diffstat (limited to 'include/exevents.h')
-rw-r--r-- | include/exevents.h | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/include/exevents.h b/include/exevents.h index 664e236dc..48dfccf02 100644 --- a/include/exevents.h +++ b/include/exevents.h @@ -188,10 +188,55 @@ extern int DeviceEventSuppressForWindow( Mask /* mask */, int /* maskndx */); -void SendEventToAllWindows( +extern void SendEventToAllWindows( DeviceIntPtr /* dev */, Mask /* mask */, xEvent * /* ev */, int /* count */); +/* Input device properties */ +extern void XIDeleteAllDeviceProperties( + DeviceIntPtr /* device */ +); + +extern int XIDeleteDeviceProperty( + DeviceIntPtr /* device */, + Atom /* property */, + Bool /* fromClient */ +); + +extern int XIChangeDeviceProperty( + DeviceIntPtr /* dev */, + Atom /* property */, + Atom /* type */, + int /* format*/, + int /* mode*/, + unsigned long /* len*/, + pointer /* value*/, + Bool /* sendevent*/, + Bool /* pending*/, + Bool /* fromClient */ + ); + +extern XIPropertyPtr XIQueryDeviceProperty( + DeviceIntPtr /* dev */, + Atom /* property */ +); + +extern XIPropertyValuePtr XIGetDeviceProperty( + DeviceIntPtr /* dev */, + Atom /* property */, + Bool /* pending */ +); + +extern int XIConfigureDeviceProperty( + DeviceIntPtr /* dev */, + Atom /* property */, + Bool /* pending */, + Bool /* range */, + Bool /* immutable */, + int /* num_values */, + INT32* /* values */ +); + #endif /* EXEVENTS_H */ |