stick
stick copied to clipboard
Sometimes ioctal 0x_8018_4540 returns -1
Hi!
I have an embedded linux system that I'm trying to get some joysticks and steering wheels to work on. For some reason the ioctal EVIOCGABS(0x_8018_4540) returns -1. Maybe there is some kernal module or settings that i'm missing for this ioctal to work.
I could get values from the device with jstest and with this change it works with stick!
I don't know if i16::MIN to i16::MAX is a sane default range but for two thrustmaster devices it seems to be correct.
Cheers!
Jonathan