[B]I just want to know whether keyRepeated works for FIRE event?
I am trying to implement it in a canvas but it is not working.[/B]
Printable View
[B]I just want to know whether keyRepeated works for FIRE event?
I am trying to implement it in a canvas but it is not working.[/B]
keyRepeated() is not a very reliable event. Devices are not required to support it. You should not rely on receiving keyRepeated() events.
Graham.
Then can you tell me how to implement the repeated action for a key event. I mean if I fire for the first time it displays a text on the canvas and if I will fire for the second time it has to navigate to another canvas. How to implement it with the same fire event.
I don't understand what you want. You have two state changes, each of which is triggered by pressing "fire"? And you want... the user to hold the fire key down for a longer period, and cause both state changes to occur, one after the other?
No I did not mean that. Actually I tried to implement that using keyRepeated only. But it is really a terrible feeling to hold the keys for such a long time. So I asked you how to implement that state change concept. I am confused how to use that actually??