C# Class SadConsole.Input.KeyboardInfo

Afficher le fichier Open project: Thraka/SadConsole Class Usage Examples

Méthodes publiques

Свойство Type Description
InitialRepeatDelay float
RepeatDelay float

Méthodes publiques

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.

Method Details

Clear() public méthode

Clears the KeysPressed, KeysDown, KeysReleased collections.
public Clear ( ) : void
Résultat void

IsKeyDown() public méthode

Returns true if the key is in the KeysDown collection.
public IsKeyDown ( Keys key ) : bool
key Keys The key to check.
Résultat bool

IsKeyReleased() public méthode

Returns true when they is in the KeysReleased collection.
public IsKeyReleased ( Keys key ) : bool
key Keys The key to check.
Résultat bool

IsKeyUp() public méthode

Returns true if the key is not in the KeysDown collection.
public IsKeyUp ( Keys key ) : bool
key Keys The key to check.
Résultat bool

KeyboardInfo() public méthode

public KeyboardInfo ( ) : System.Collections.Generic
Résultat System.Collections.Generic

ProcessKeys() public méthode

Reads the keyboard state using the GameTime from the update frame.
public ProcessKeys ( GameTime gameTime ) : void
gameTime GameTime
Résultat void

Property Details

InitialRepeatDelay public_oe property

The initial delay after a key is first pressed before it is included a second time (while held down) in the KeysPressed collection.
public float InitialRepeatDelay
Résultat float

RepeatDelay public_oe property

How often a key is included in the KeysPressed collection after the InitialRepeatDelay time has passed.
public float RepeatDelay
Résultat float