I am trying to implement a code that does something like a Joystick.
For an example when i press the LED on button, the LED stays on till i keep holding the LED on button and goes off when i release the button.
So how do i get the onRelease event when the user releases the software button.