Skip to main content
gamedev.net
🔒 Locked

[java] j2me input

Started by Tech19 0 replies 250+ views
Original Post
Tech19
Tech19
whats the best way to check if a button is being held down in j2me, specifically for the nokia 7210.
Sneftel
Sneftel
In J2ME with MIDP 1.0, there''s no way to do it directly without vendor-specific extensions such as GameCanvas on the VodaPhone. You''ll have to override the keyPressed() and keyReleased() methods of your Canvas to update a maintained state, and then query that state. I''d show you code for that, but it''s at work.


"Sneftel is correct, if rather vulgar." --Flarelocke

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.