C# Class Afterglow.Input.InputDeviceBase

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

Public Methods

Method Description
On ( Button button ) : IButtonState

Starts a configuration for a button press.

Update ( ) : void

Updates the input device.

Protected Methods

Method 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 method

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.
return void

CheckReleasedButton() protected method

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.
return void

InputDeviceBase() protected method

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

On() public method

Starts a configuration for a button press.
public On ( Button button ) : IButtonState
button Button The button.
return IButtonState

Update() public abstract method

Updates the input device.
public abstract Update ( ) : void
return void