sdljava.joystick
public class HatState extends Object
Version: $Id: HatState.java,v 1.4 2005/01/19 03:09:12 ivan_ganza Exp $
| Field Summary | |
|---|---|
| static Map | modCache
cache of HatState instances, one for each possible
mods values
|
| int | state |
| static int | SDL_HAT_CENTERED |
| static int | SDL_HAT_DOWN |
| static int | SDL_HAT_LEFT |
| static int | SDL_HAT_LEFTDOWN |
| static int | SDL_HAT_LEFTUP |
| static int | SDL_HAT_RIGHT |
| static int | SDL_HAT_RIGHTDOWN |
| static int | SDL_HAT_RIGHTUP |
| static int | SDL_HAT_UP |
| Constructor Summary | |
|---|---|
| HatState(int state) | |
| Method Summary | |
|---|---|
| static HatState | get(int state)
Get the HatState instance identified by state. |
| boolean | hatCentered() |
| boolean | hatDown() |
| boolean | hatLeft() |
| boolean | hatLeftDown() |
| boolean | hatLeftUp() |
| boolean | hatRight() |
| boolean | hatRightDown() |
| boolean | hatRightUp() |
| boolean | hatUp() |
| String | toString()
Return a string represenation of this object
|
Parameters: mods valid key mods (possibly OR'd together)
Returns: The singleton HatState instance
Returns: a String represenation of this object