|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSystem.ValueType
Microsoft.Xna.Framework.Input.KeyboardState
public final class KeyboardState
Represents a state of keystrokes recorded by a keyboard input device.
Constructor Summary | |
---|---|
KeyboardState(Keys... keys)
Initializes a new instance of the KeyboardState class. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Returns a value that indicates whether the current instance is equal to a specified object. |
KeyState |
get(Keys key)
Returns the state of a particular key. |
Keys[] |
GetPressedKeys()
Gets an array of values that correspond to the keyboard keys that are currently being pressed. |
int |
hashCode()
Gets the hash code for this instance. |
boolean |
IsKeyDown(Keys key)
Returns whether a specified key is currently being pressed. |
boolean |
IsKeyUp(Keys key)
Returns whether a specified key is currently not pressed. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyboardState(Keys... keys)
keys
- Array or parameter list of Keys to initialize as pressed.Method Detail |
---|
public KeyState get(Keys key)
key
- Enumerated value representing the key to query.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object to compare this object to.
public int hashCode()
hashCode
in class java.lang.Object
public Keys[] GetPressedKeys()
public boolean IsKeyDown(Keys key)
key
- Enumerated value that specifies the key to query.
public boolean IsKeyUp(Keys key)
key
- Enumerated value that specifies the key to query.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |