sdljava.event
public class SDLMod extends Object
Version: $Id: SDLMod.java,v 1.8 2005/01/19 03:09:12 ivan_ganza Exp $
Field Summary | |
---|---|
static Map | modCache
cache of SDLMod instances, one for each possible
mods values
|
int | mods
valid key mods (possibly OR'd together)
|
Constructor Summary | |
---|---|
SDLMod(int mods)
Creates a new SDLMod instance.
|
Method Summary | |
---|---|
boolean | alt() |
boolean | caps() |
boolean | ctrl() |
static SDLMod | get(int mods)
Get the SDLMod instance identified by mods. |
int | getState() |
boolean | leftAlt() |
boolean | leftCtrl() |
boolean | leftMeta() |
boolean | leftShift() |
boolean | meta() |
boolean | mode() |
boolean | num() |
boolean | rightAlt() |
boolean | rightCtrl() |
boolean | rightMeta() |
boolean | rightShift() |
boolean | shift() |
String | toString() |
String | toStringBrief() |
SDLMod
instance.
Parameters: mods valid key mods (possibly OR'd together)
Parameters: mods valid key mods (possibly OR'd together)
Returns: The singleton SDLMod instance