×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Location
    IL/USA
    Posts
    341

    e61 & e62 keyboard and Canvas

    I am trying to capture keys from e61/e62 qwrty keyboard but it doesn't work? How do I trap qwerty keyboard keys on canvas?

  2. #2
    Registered User
    Join Date
    Mar 2006
    Posts
    13

    Re: e61 & e62 keyboard and Canvas

    Hi,

    do like this...
    protected void keyPressed(int keyCode)
    {

    int gameAction = getGameAction(keyCode);
    int k=getKeyCode(gameAction);
    System.out.println("THE KEY CODE"+k);

    }
    The key code of that will print on the console.

Similar Threads

  1. Controlling 3650 with a PC keyboard
    By btnokdev in forum Mobile Java General
    Replies: 7
    Last Post: 2007-01-18, 11:49
  2. Strange MIDlet slowdown when use GameCanvas instead Canvas
    By alexey_kr in forum Mobile Java General
    Replies: 1
    Last Post: 2005-05-06, 15:26
  3. Nokia 3300 Americas key press event not handled , keyboard
    By janulewicz in forum Mobile Java General
    Replies: 0
    Last Post: 2004-07-22, 16:56
  4. Nokia 7650 - No keyboard input.
    By cs8st in forum Mobile Java General
    Replies: 2
    Last Post: 2002-09-25, 21:04
  5. Nokia 7650 - No keyboard input.
    By cs8st in forum Mobile Java General
    Replies: 0
    Last Post: 2002-09-24, 09:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×