Input: Clarify valuator FatalError messages
Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ddb46c1421
commit
b5ece46b76
|
@ -753,10 +753,11 @@ UpdateDeviceState(DeviceIntPtr device, xEvent* xE, int count)
|
||||||
int first = xV->first_valuator;
|
int first = xV->first_valuator;
|
||||||
BOOL change = FALSE;
|
BOOL change = FALSE;
|
||||||
|
|
||||||
if (xV->num_valuators &&
|
if (xV->num_valuators && !v)
|
||||||
(!v || (xV->num_valuators &&
|
FatalError("Valuators reported for non-valuator device '%s'\n",
|
||||||
(first + xV->num_valuators > v->numAxes))))
|
device->name);
|
||||||
FatalError("Bad valuators reported for device %s\n",
|
if (first + xV->num_valuators > v->numAxes)
|
||||||
|
FatalError("Too many valuators reported for device '%s'\n",
|
||||||
device->name);
|
device->name);
|
||||||
if (v && v->axisVal) {
|
if (v && v->axisVal) {
|
||||||
/* v->axisVal is always in absolute coordinates. Only the
|
/* v->axisVal is always in absolute coordinates. Only the
|
||||||
|
|
Loading…
Reference in New Issue