PDA

View Full Version : Hareware Push Button



mickeyk191
5th January 2010, 16:51
Hi

I am running a embedded Qt application on a Arm board (at91sam9263) running linux. I want to use the two hardware buttons to press two corresponding push buttons on the screen. How do I link the low level hardware buttons to the application? I can find my buttons at /dev/input/event0. I can evtest event0 to show leftClick, RightClick and pressed/released etc.

Can anyone help?

high_flyer
5th January 2010, 16:58
(This is not a Qt related question.)
You need to be able to map these events to standard system events either to Keyboard events or Mouse Button events.
Once you have done that, Qt will get these events from the system as the events you mapped, which you can then trap with QMouseEevet or QKeyEvent.

mickeyk191
26th January 2010, 12:41
Hey

After some time messing about with keycodes in the kernel config files I can now use my hardware buttons in my application. However I did need to run my application without X-windows as it kept intercepting my keypresses so they couldnt get to the application.

Thanks for the help