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.
This commit is contained in:
Peter Hutterer 2008-07-07 22:10:17 +09:30
commit 666838fcc8
7 changed files with 868 additions and 5 deletions

View file

@ -194,4 +194,19 @@ void SendEventToAllWindows(
xEvent * /* ev */,
int /* count */);
/* Input device properties */
void XIDeleteAllDeviceProperties (DeviceIntPtr device);
void XIDeleteDeviceProperty (DeviceIntPtr Device, Atom property);
int XIChangeDeviceProperty (DeviceIntPtr dev, Atom property, Atom type,
int format, int mode, unsigned long len,
pointer value, Bool sendevent, Bool pending);
XIPropertyPtr XIQueryDeviceProperty (DeviceIntPtr dev, Atom property);
XIPropertyValuePtr XIGetDeviceProperty (DeviceIntPtr dev, Atom property,
Bool pending);
int XIConfigureDeviceProperty (DeviceIntPtr dev, Atom property,
Bool pending, Bool range, Bool immutable,
int num_values, INT32 *values);
#endif /* EXEVENTS_H */