Property | Type | Description | |
---|---|---|---|
InitialRepeatDelay | float | ||
RepeatDelay | float |
Method | Description | |
---|---|---|
Clear ( ) : void |
Clears the KeysPressed, KeysDown, KeysReleased collections.
|
|
IsKeyDown ( Keys key ) : bool |
Returns true if the key is in the KeysDown collection.
|
|
IsKeyReleased ( Keys key ) : bool |
Returns true when they is in the KeysReleased collection.
|
|
IsKeyUp ( Keys key ) : bool |
Returns true if the key is not in the KeysDown collection.
|
|
KeyboardInfo ( ) : System.Collections.Generic | ||
ProcessKeys ( GameTime gameTime ) : void |
Reads the keyboard state using the GameTime from the update frame.
|
public IsKeyDown ( Keys key ) : bool | ||
key | Keys | The key to check. |
return | bool |
public IsKeyReleased ( Keys key ) : bool | ||
key | Keys | The key to check. |
return | bool |
public KeyboardInfo ( ) : System.Collections.Generic | ||
return | System.Collections.Generic |
public ProcessKeys ( GameTime gameTime ) : void | ||
gameTime | GameTime | |
return | void |