|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sdljava.event.SDLMod
public class SDLMod
Set of possible key modifiers(mods)
Field Summary | |
---|---|
(package private) static java.util.Map |
modCache
cache of SDLMod instances, one for each possible mods values |
(package private) 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()
|
java.lang.String |
toString()
|
java.lang.String |
toStringBrief()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static java.util.Map modCache
int mods
Constructor Detail |
---|
public SDLMod(int mods)
SDLMod
instance.
mods
- valid key mods (possibly OR'd together)Method Detail |
---|
public static SDLMod get(int mods)
mods
- valid key mods (possibly OR'd together)
public boolean leftShift()
public boolean rightShift()
public boolean leftCtrl()
public boolean rightCtrl()
public boolean leftAlt()
public boolean rightAlt()
public boolean leftMeta()
public boolean rightMeta()
public boolean num()
public boolean caps()
public boolean mode()
public boolean ctrl()
public boolean shift()
public boolean alt()
public boolean meta()
public int getState()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringBrief()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |