C# Class MrGravity.KeyboardControl

Keyboard Scheme; Used to handle keyboard controls
Inheritance: IControlScheme
Afficher le fichier Open project: DizWARE/Mr-Gravity

Méthodes publiques

Méthode Description
ControlScheme ( ) : ControlSchemes

Gets the type of control scheme this is

IsAPressed ( bool held ) : bool

Checks to see if the control for A has been interacted with Only work when the button has just been pushed

IsBPressed ( bool held ) : bool

Checks to see if the control for B has been interacted with Only work when the button has just been pushed

IsBackPressed ( bool held ) : bool

Checks to see if the control for back has been interacted with Only work when the button has just been pushed

IsDownPressed ( bool held ) : bool

Checks to see if the control for Down has been interacted with Only work when the button has just been pushed

IsHomePressed ( bool held ) : bool

Checks to see if the control for home has been interacted with Only work when the button has just been pushed

IsLeftPressed ( bool held ) : bool

Checks to see if the control for left has been interacted with Only work when the button has just been pushed

IsLeftShoulderPressed ( bool held ) : bool

Checks to see if the control for LS has been interacted with Only work when the button has just been pushed

IsLeftTriggerPressed ( bool held ) : bool

Checks to see if the control for LT has been interacted with Only work when the button has just been pushed

IsRightPressed ( bool held ) : bool

Checks to see if the control for Right has been interacted with Only work when the button has just been pushed

IsRightShoulderPressed ( bool held ) : bool

Checks to see if the control for RS has been interacted with Only work when the button has just been pushed

IsRightTriggerPressed ( bool held ) : bool

Checks to see if the control for RT has been interacted with Only work when the button has just been pushed

IsStartPressed ( bool held ) : bool

Checks to see if the control for Start has been interacted with Only work when the button has just been pushed

IsUpPressed ( bool held ) : bool

Checks to see if the control for Up has been interacted with Only work when the button has just been pushed

IsXPressed ( bool held ) : bool

Checks to see if the control for X has been interacted with Only work when the button has just been pushed

IsYPressed ( bool held ) : bool

Checks to see if the control for Y has been interacted with Only work when the button has just been pushed

Private Methods

Méthode Description
IsPressed ( Keys key, bool held ) : bool

Checks to see if the given key is pressed

Method Details

ControlScheme() public méthode

Gets the type of control scheme this is
public ControlScheme ( ) : ControlSchemes
Résultat ControlSchemes

IsAPressed() public méthode

Checks to see if the control for A has been interacted with Only work when the button has just been pushed
public IsAPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool

IsBPressed() public méthode

Checks to see if the control for B has been interacted with Only work when the button has just been pushed
public IsBPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool

IsBackPressed() public méthode

Checks to see if the control for back has been interacted with Only work when the button has just been pushed
public IsBackPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool

IsDownPressed() public méthode

Checks to see if the control for Down has been interacted with Only work when the button has just been pushed
public IsDownPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool

IsHomePressed() public méthode

Checks to see if the control for home has been interacted with Only work when the button has just been pushed
public IsHomePressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool

IsLeftPressed() public méthode

Checks to see if the control for left has been interacted with Only work when the button has just been pushed
public IsLeftPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool

IsLeftShoulderPressed() public méthode

Checks to see if the control for LS has been interacted with Only work when the button has just been pushed
public IsLeftShoulderPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool

IsLeftTriggerPressed() public méthode

Checks to see if the control for LT has been interacted with Only work when the button has just been pushed
public IsLeftTriggerPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool

IsRightPressed() public méthode

Checks to see if the control for Right has been interacted with Only work when the button has just been pushed
public IsRightPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool

IsRightShoulderPressed() public méthode

Checks to see if the control for RS has been interacted with Only work when the button has just been pushed
public IsRightShoulderPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool

IsRightTriggerPressed() public méthode

Checks to see if the control for RT has been interacted with Only work when the button has just been pushed
public IsRightTriggerPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool

IsStartPressed() public méthode

Checks to see if the control for Start has been interacted with Only work when the button has just been pushed
public IsStartPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool

IsUpPressed() public méthode

Checks to see if the control for Up has been interacted with Only work when the button has just been pushed
public IsUpPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool

IsXPressed() public méthode

Checks to see if the control for X has been interacted with Only work when the button has just been pushed
public IsXPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool

IsYPressed() public méthode

Checks to see if the control for Y has been interacted with Only work when the button has just been pushed
public IsYPressed ( bool held ) : bool
held bool Set true if this button is allowed to be held down and still respond to interaction
Résultat bool