Pass SetDeviceValuators down to the driver.
NOTE: This changes the LocalDeviceRec struct, which breaks input drivers.
This commit is contained in:
parent
6dd4fc4652
commit
1b1698af41
|
@ -501,7 +501,13 @@ int
|
||||||
SetDeviceValuators (ClientPtr client, DeviceIntPtr dev, int *valuators,
|
SetDeviceValuators (ClientPtr client, DeviceIntPtr dev, int *valuators,
|
||||||
int first_valuator, int num_valuators)
|
int first_valuator, int num_valuators)
|
||||||
{
|
{
|
||||||
return BadMatch;
|
LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
|
||||||
|
|
||||||
|
if (local->set_device_valuators)
|
||||||
|
return (*local->set_device_valuators)(local, valuators, first_valuator,
|
||||||
|
num_valuators);
|
||||||
|
|
||||||
|
return BadMatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ typedef struct _LocalDeviceRec {
|
||||||
struct _LocalDeviceRec *next;
|
struct _LocalDeviceRec *next;
|
||||||
char * name;
|
char * name;
|
||||||
int flags;
|
int flags;
|
||||||
|
|
||||||
Bool (*device_control)(DeviceIntPtr device, int what);
|
Bool (*device_control)(DeviceIntPtr device, int what);
|
||||||
void (*read_input)(struct _LocalDeviceRec *local);
|
void (*read_input)(struct _LocalDeviceRec *local);
|
||||||
int (*control_proc)(struct _LocalDeviceRec *local,
|
int (*control_proc)(struct _LocalDeviceRec *local,
|
||||||
|
@ -128,7 +128,11 @@ typedef struct _LocalDeviceRec {
|
||||||
Bool (*reverse_conversion_proc)(
|
Bool (*reverse_conversion_proc)(
|
||||||
struct _LocalDeviceRec *local,
|
struct _LocalDeviceRec *local,
|
||||||
int x, int y, int *valuators);
|
int x, int y, int *valuators);
|
||||||
|
int (*set_device_valuators)
|
||||||
|
(struct _LocalDeviceRec *local,
|
||||||
|
int *valuators, int first_valuator,
|
||||||
|
int num_valuators);
|
||||||
|
|
||||||
int fd;
|
int fd;
|
||||||
Atom atom;
|
Atom atom;
|
||||||
DeviceIntPtr dev;
|
DeviceIntPtr dev;
|
||||||
|
|
Loading…
Reference in New Issue