Qt5.1.1 no input from keypad that is a standard linux event device
-
wrote on 10 Mar 2014, 20:39 last edited by
I imagine this is a really silly issue, and I missed a plugin i need. I have a keypad with 5 keys at /dev/input/event0 and qt5 doesn't recognise any of those key events currently.
-
wrote on 27 Mar 2014, 19:03 last edited by
Have you tried specifying the keyboard plugin when running your application?
-plugin evdevkeyboard:/dev/input/event0
-
wrote on 28 Mar 2014, 02:16 last edited by
These is a line to test which key is within the event device ( default 'Q'), you should hack it to make sure one of your key is in the "test list" (after your change).
qtbase/src/platformsupport/devicediscovery/qdevicediscovery_static.cpp:
@if (testBit(KEY_Q, bitsKey)) @
or in your case qdevicediscovery_udev.cpp .
-
wrote on 28 Mar 2014, 09:56 last edited by
Yes, if the discovery fails, run with -plugin evdevkeyboard:/dev/input/event0 (or QT_QPA_EVDEV_KEYBOARD_PARAMETERS=/dev/input/event0 if using the eglfs platform)
Is the device sending normal key events? Or is it sending something special which evdevkeyboard does not recognize?