C# Class MrGravity.KeyboardControl

Keyboard Scheme; Used to handle keyboard controls
Inheritance: IControlScheme
Exibir arquivo Open project: DizWARE/Mr-Gravity

Public Methods

Method 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

Method Description
IsPressed ( Keys key, bool held ) : bool

Checks to see if the given key is pressed

Method Details

ControlScheme() public method

Gets the type of control scheme this is
public ControlScheme ( ) : ControlSchemes
return ControlSchemes

IsAPressed() public method

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
return bool

IsBPressed() public method

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
return bool

IsBackPressed() public method

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
return bool

IsDownPressed() public method

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
return bool

IsHomePressed() public method

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
return bool

IsLeftPressed() public method

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
return bool

IsLeftShoulderPressed() public method

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
return bool

IsLeftTriggerPressed() public method

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
return bool

IsRightPressed() public method

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
return bool

IsRightShoulderPressed() public method

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
return bool

IsRightTriggerPressed() public method

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
return bool

IsStartPressed() public method

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
return bool

IsUpPressed() public method

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
return bool

IsXPressed() public method

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
return bool

IsYPressed() public method

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
return bool