×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jul 2008
    Location
    Cambridge, UK
    Posts
    4

    Full Screen Mode and Fire Key

    I'm writing a game that can be switched to full screen mode. The game uses the standard direction and fire keys which work well when not in full screen. However, when in full screen mode the fire key turns into a soft key and brings up the commands instead. Is there a way around this?

    Many thanks

    Simon

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Full Screen Mode and Fire Key

    Hi Simon,

    on which devices and/or emulators do you have this issue?

    Also, which code are you using for both setting fullscreen and detecting key events?

    Pit

  3. #3
    Registered User
    Join Date
    Jul 2008
    Location
    Cambridge, UK
    Posts
    4

    Re: Full Screen Mode and Fire Key

    Hi

    Thanks for your reply. I'm running this on a 6300, but with the standard 2.5.2 DefaultColor emulator it runs as expected (no suprise there).

    Full screen mode is set using GameCanvas.setFullScreenMode() at any time, as the user can change it via the options screen.

    I'm checking the key events two ways: using getKeyStates() for the action keys, and keyPressed() and keyRepeated() for the other keys. This way the '5' key still works as a fire key but only registers a single key.

    Many thanks

    Simon

  4. #4
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    51

    Re: Full Screen Mode and Fire Key

    hi mooncat69,
    u should be carefull since not all device have the same keycode..
    Nokia, Motorola, Siemens and Panasonic have different. but Nokia have the same key code with LG and Sony Ericsson. so u should make a target device,and if u want to make ur code support thats all device, try to use prepocessor to define keycode, and deploy it base on device.
    As i know, theres is no connection between the fire key and fullscreen, but i ever read that setFullScreenMode() methode raise exception in some sony ericsson device if u put that in constructor. try to check this link http://devlinslab.blogspot.com/2007/...en-canvas.html

    may it help
    -regards-
    adek aidi

  5. #5
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: Full Screen Mode and Fire Key

    Hey mooncat69,
    You are using..GameCanvas...right.Please check whether the same jar is working fine with other devices.

    Also there is no intercommunication between setFullScreenMode(boolean) and keyPresses(int kc) at all.
    What you are passing in setFullScreenMode(boolean)...I mean TRUE/FALSE.
    Make sure the keycode is not going to mix up in the java code.
    If after checking on the different devices the does not work then you can put your code here.
    Thanks
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. right soft key to exit on full-screen canvas
    By Larry101 in forum Mobile Java General
    Replies: 5
    Last Post: 2008-02-21, 11:44
  2. Video playback with sound but nothing on Screen
    By abdullah829 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2007-11-30, 14:04
  3. Access to Nokia soft key and Fire key
    By prafull_14 in forum Mobile Java Tools & SDKs
    Replies: 6
    Last Post: 2007-03-14, 16:22

Posting Permissions

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