C# Class Afterglow.Input.InputDeviceBase

Base class for input devices which stores the configuration for registered buttons.
Inheritance: IInputDevice
Afficher le fichier Open project: Christof/afterglow

Méthodes publiques

Méthode Description
On ( Button button ) : IButtonState

Starts a configuration for a button press.

Update ( ) : void

Updates the input device.

Méthodes protégées

Méthode Description
CheckDownButton ( Button button ) : void

Checks whether the button which is down was registered for an action and executes the action.

CheckReleasedButton ( Button button ) : void

Checks whether the released button was pressed and was registered for an action and executes the action.

InputDeviceBase ( ) : System.Collections.Generic

Initializes a new instance of the InputDeviceBase class.

Method Details

CheckDownButton() protected méthode

Checks whether the button which is down was registered for an action and executes the action.
protected CheckDownButton ( Button button ) : void
button Button The button.
Résultat void

CheckReleasedButton() protected méthode

Checks whether the released button was pressed and was registered for an action and executes the action.
protected CheckReleasedButton ( Button button ) : void
button Button The button.
Résultat void

InputDeviceBase() protected méthode

Initializes a new instance of the InputDeviceBase class.
protected InputDeviceBase ( ) : System.Collections.Generic
Résultat System.Collections.Generic

On() public méthode

Starts a configuration for a button press.
public On ( Button button ) : IButtonState
button Button The button.
Résultat IButtonState

Update() public abstract méthode

Updates the input device.
public abstract Update ( ) : void
Résultat void