Xi: add XATOM_FLOAT to server-defined properties.

This property is used to denote type float for input properties. Such
properties can be accessed easily through the XIPropToFloat() function.

Code originally written by Simon Thum.

Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
This commit is contained in:
Peter Hutterer
2008-12-05 16:24:57 +10:00
parent 669f6810af
commit a48c81dcdf
3 changed files with 64 additions and 1 deletions

View File

@@ -26,6 +26,10 @@
#ifndef _XSERVER_PROPERTIES_H_
#define _XSERVER_PROPERTIES_H_
/* Type for a 4 byte float. Storage format IEEE 754 in client's default
* byte-ordering. */
#define XATOM_FLOAT "FLOAT"
/* BOOL. 0 - device disabled, 1 - device enabled */
#define XI_PROP_ENABLED "Device Enabled"