×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    2

    left/right keys on 7650

    We are working on a game that uses a full screen canvas. During game play we want to show a menu if user presses either left or right soft keys. Our code to detect that these are being pressed is to check if the name (case insensitive) contains the stirng "soft":

    private boolean isSoftKey(String name){
    return name.toLowerCase().indexOf("soft") != -1;
    }


    --this works on 6800 and 3510i but *not* on the 7650. Does anyone know the correct way to detect that the left or right soft keys are being pressed. FYI, they are *not* defined as game action keys and we cannot use any of the game action keys to open this menu. Any thoughts would be appreciated.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    The FullCanvas class has fields defined for this:
    FullCanvas.KEY_SOFTKEY1,
    FullCanvas.KEY_SOFTKEY2, and
    FullCanvas.KEY_SOFTKEY3.

    shmoove

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    2
    shmoove

    excellent, thanks a lot!

Posting Permissions

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