Свойство | Type | Description | |
---|---|---|---|
InitialRepeatDelay | float | ||
RepeatDelay | float |
Méthode | 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. |
Résultat | bool |
public IsKeyReleased ( Keys key ) : bool | ||
key | Keys | The key to check. |
Résultat | bool |
public IsKeyUp ( Keys key ) : bool | ||
key | Keys | The key to check. |
Résultat | bool |
public KeyboardInfo ( ) : System.Collections.Generic | ||
Résultat | System.Collections.Generic |
public ProcessKeys ( GameTime gameTime ) : void | ||
gameTime | GameTime | |
Résultat | void |