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,6 +501,12 @@ int
|
|||
SetDeviceValuators (ClientPtr client, DeviceIntPtr dev, int *valuators,
|
||||
int first_valuator, int num_valuators)
|
||||
{
|
||||
LocalDevicePtr local = (LocalDevicePtr) dev->public.devicePrivate;
|
||||
|
||||
if (local->set_device_valuators)
|
||||
return (*local->set_device_valuators)(local, valuators, first_valuator,
|
||||
num_valuators);
|
||||
|
||||
return BadMatch;
|
||||
}
|
||||
|
||||
|
|
|
@ -128,6 +128,10 @@ typedef struct _LocalDeviceRec {
|
|||
Bool (*reverse_conversion_proc)(
|
||||
struct _LocalDeviceRec *local,
|
||||
int x, int y, int *valuators);
|
||||
int (*set_device_valuators)
|
||||
(struct _LocalDeviceRec *local,
|
||||
int *valuators, int first_valuator,
|
||||
int num_valuators);
|
||||
|
||||
int fd;
|
||||
Atom atom;
|
||||
|
|
Loading…
Reference in New Issue
Block a user