Acknowledged
over 1 year ago

OnKeyPressed and OnKeyReleased InputDelegate events don't fire on touch screens

I am adding a feature to detect when a user holds the menu button down.  It works fine for physical buttons but not on touch screen devices.  

I moved all my menu button handling from the OnKey to the OnKeyPressed/OnKeyReleased events.

The documentation says OnKey, OnKeyPressed and OnKeyReleased are all applicable to "Physical buttons"

These events ALL fire in the Edge 830 simulator.

However ONLY OnKey fires on the physical device.

I guess this  means that for touch screen devices I can ONLY use OnKey so therefore cannot detect when the user holds the button.

Is this feature or a bug?

If a feature please can simulator and documentation be updated?
Otherwise can the bug be fixed please?

Parents
  • Agree.  I find it quite frustrating the amount of time we lose chasing "bugs" that are actually undocumented/unsimulated design features.  Something like button events I would have thought would be a pretty easy one to spot.  

    Yes of course testing on real devices would be great, but it is unrealistic to expect us to buy every single device model. 

Comment
  • Agree.  I find it quite frustrating the amount of time we lose chasing "bugs" that are actually undocumented/unsimulated design features.  Something like button events I would have thought would be a pretty easy one to spot.  

    Yes of course testing on real devices would be great, but it is unrealistic to expect us to buy every single device model. 

Children
No Data