Skip to main content

Bugs on com.sun.lwuit.Display Constant Field Values

3 replies [Last post]
raheman
Offline
Joined: 2008-07-20
Points: 0

following Constant Field Values in com.sun.lwuit.Display
public static final int GAME_DOWN 6
public static final int GAME_FIRE 8
public static final int GAME_LEFT 2
public static final int GAME_RIGHT 5
public static final int GAME_UP 1

Must be Edited to:

public static final int GAME_DOWN -2
public static final int GAME_FIRE -5
public static final int GAME_LEFT -3
public static final int GAME_RIGHT -4
public static final int GAME_UP -1

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
chen

why do you think this is a bug?

lwuit-users@mobileandembedded.org wrote:
> following Constant Field Values in com.sun.lwuit.Display
> public static final int GAME_DOWN 6
> public static final int GAME_FIRE 8
> public static final int GAME_LEFT 2
> public static final int GAME_RIGHT 5
> public static final int GAME_UP 1
>
> Must be Edited to:
>
> public static final int GAME_DOWN -2
> public static final int GAME_FIRE -5
> public static final int GAME_LEFT -3
> public static final int GAME_RIGHT -4
> public static final int GAME_UP -1
> [Message sent by forum member 'raheman' (raheman)]
>
> http://forums.java.net/jive/thread.jspa?messageID=289654
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

raheman
Offline
Joined: 2008-07-20
Points: 0

beacause i have tested these values by extending com.sun.lwuit.Component and with keyReleased(int keyCode) or keyPressed(int keyCode) ,so i have recognized
that these values doesn't match with those Constant Field Values. that i mentioned about it

Do you think ,i do something wrong?

chen

Hi,
That's not a bug, are you familiar with getGameKey() method.

Regards,
Chen

lwuit-users@mobileandembedded.org wrote:
> beacause i have tested these values by extending com.sun.lwuit.Component and with keyReleased(int keyCode) or keyPressed(int keyCode) ,so i have recognized
> that these values doesn't match with those Constant Field Values. that i mentioned about it
> [Message sent by forum member 'raheman' (raheman)]
>
> http://forums.java.net/jive/thread.jspa?messageID=289667
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net