×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    12

    Precision about n96 fire key

    Hi everyone,

    I read a lot of interesting articles about the fire key on nokia n96 (and few other ones).
    But I still have 2 questions:

    1) a lot of people say to test directly the keycode and compare it to -5. But for my n96, fire key looks to be 0... So can I put 0 on my code or maybe that will create other problems for other devices.

    2) At the buttom of the screen of a n96, you have often 3 choices. leftPad to activate the left one, rightPad for the right one, and the fire key for the middle one. So, is this a way to fix my problem, to display in the middle of the screen the ation I want to activate with the fire key?

    I thank you by advance, and also thanks to this forum which has been so far so helpful.
    Last edited by nikkoSH; 2009-03-24 at 03:57.

  2. #2
    Super Contributor
    Join Date
    Jun 2007
    Location
    Mumbai
    Posts
    539

    Re: Precision about n96 fire key

    1) a lot of people say to test directly the keycode and compare it to -5. But for my n96, fire key looks to be 0... So can I put 0 on my code or maybe that will create other problems for other devices.
    Use Canvas.FIRE instead that will always work with all device.
    au revoir
    Prakash Raman

  3. #3
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    104

    Re: Precision about n96 fire key

    Hi Nikosh,

    I think if u are using 0 for fire in N96 that will work but not for all nokia mobile.
    But by using FIRE instead that will always work with all device in Canvas.



    Thanks
    shravan

  4. #4
    Registered User
    Join Date
    Mar 2009
    Posts
    12

    Re: Precision about n96 fire key

    Thanks for your answer.
    Actually I did my program using Canvas.FIRE. But when I tried it on different phones, n96 (and 2 other ones so far), fire button does not work...

    I did a simple code, I have a rectangle that I make move. It works for almost all devices, but almost... what can i do to make it work on n96...

    it does not care about my Canvas.fire.....

    if (keyCode==Canvas.FIRE)
    {
    _dirBarre="LEFT";
    }
    else if (keyCode==Canvas.KEY_NUM4)
    {
    _dirBarre="RIGHT";
    }

Similar Threads

  1. problem capturing FIRE key with n96
    By Arnau.Manyosa in forum Mobile Java General
    Replies: 10
    Last Post: 2008-12-02, 04:51
  2. Full Screen Mode and Fire Key
    By mooncat69 in forum Mobile Java General
    Replies: 4
    Last Post: 2008-10-22, 10:32
  3. Fire key on touch screen device?
    By girdhar in forum Mobile Java General
    Replies: 1
    Last Post: 2008-03-25, 09:44
  4. 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
  •  
×