diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2010-11-25 13:01:53 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-11-25 13:04:53 +1000 |
commit | 802dd194dc8a571f600e05a93505681ae1ce13c7 (patch) | |
tree | adf1b0b87fd0bf010670ffe44f9e47a88853fe29 /src | |
parent | f85c4b580c074f7054eac98753d1f4e91f08305e (diff) |
Add mode field to InitValuatorAxisStruct
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/acecad.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/acecad.c b/src/acecad.c index da788a0..6259f21 100644 --- a/src/acecad.c +++ b/src/acecad.c @@ -720,7 +720,11 @@ DeviceInit (DeviceIntPtr dev) #endif 1000, /* resolution */ 0, /* min_res */ - 1000); /* max_res */ + 1000 /* max_res */ +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12 + , Absolute +#endif + ); InitValuatorAxisStruct(dev, 1, #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 @@ -734,7 +738,11 @@ DeviceInit (DeviceIntPtr dev) #endif 1000, /* resolution */ 0, /* min_res */ - 1000); /* max_res */ + 1000 /* max_res */ +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12 + , Absolute +#endif + ); InitValuatorAxisStruct(dev, 2, #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7 @@ -744,7 +752,11 @@ DeviceInit (DeviceIntPtr dev) priv->acecadMaxZ, /* max val */ 1000, /* resolution */ 0, /* min_res */ - 1000); /* max_res */ + 1000 /* max_res */ +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12 + , Absolute +#endif + ); } |