The button pressed and released events do not send the button id to the eventhandler. Currently is passes a hard-coded 0.
This is the line in question
|
return EventListener.ButtonPressed(eventArgs, 0); |
The actual button value is stored in the button state, which is passed to listener as an eventargs. Why not also pass the value as a parameter?