Work around for people with older input.h.

This commit is contained in:
n-a-c-h
2006-03-27 11:30:26 +00:00
parent 0874c49534
commit 706993bc4c

View File

@@ -214,7 +214,14 @@ static int init_mouse(const char *fname, int fd)
mouse->min_x = mouse->min_y = mouse->max_x = mouse->max_y = 0;
if (has_absolutes)
{
struct input_absinfo absinfo;
struct
{
int value;
int minimum;
int maximum;
int fuzz;
int flat;
} absinfo;
if (ioctl(fd, EVIOCGABS(ABS_X), &absinfo) == -1)
return 0;
mouse->min_x = absinfo.minimum;