mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-21 20:26:45 +00:00
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:
parent
acce270935
commit
666838fcc8
7 changed files with 868 additions and 5 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue