DeusExMachina Posted August 28, 2013 Report Posted August 28, 2013 Hello!Could anybody give me a code of sending event to a button? I Have matrix keyboard and I want to send event when I detect physical button pressing
Joel Bodenmann Posted August 28, 2013 Report Posted August 28, 2013 Why do you want to do that? The way it's meant to be done is that the button sends an event when it gets touched.In case of you want this to set some "pressed animation", that is also a job that's handled by the button widget.~ Tectu
DeusExMachina Posted August 28, 2013 Author Report Posted August 28, 2013 I don't use touchscreen I use only physical buttons (matrix keyboard) in my device (buttons surround screen like ATM UI). I need to do something when this buttons pressed and redraw screen or animate screen button while pressing.
Joel Bodenmann Posted August 28, 2013 Report Posted August 28, 2013 You will have to use the toggle driver of the ginput module. You can find several examples on how to use it within the /demos directory (search for *Toggle*). Currently there's just the input driver for the ChibiOS/RT PAL HAL (I assume that is what you're using). Therefore there shouldn't be a lot of trouble to get it working. You can take a look at the example file for the olimex board to see how it's done.I'll add this to my ToDo list to write proper documentation about it.~ Tectu
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now