Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...