public bool GetButtonPrevious( Xbox360GamepadButton key )
 {
     return buttonsToFuncsMap[ key ]( statePrevious );
 }
 public bool DidButtonPressEnd( Xbox360GamepadButton key )
 {
     return ( !GetButton( key ) && GetButtonPrevious( key ) );
 }
 public bool GetButton( Xbox360GamepadButton key )
 {
     return buttonsToFuncsMap[ key ]( stateCurrent );
 }
 public bool DidButtonPressBegin( Xbox360GamepadButton key )
 {
     return ( GetButton( key ) && !GetButtonPrevious( key ) );
 }
Exemplo n.º 5
0
 public bool GetButtonPrevious(Xbox360GamepadButton key)
 {
     return(buttonsToFuncsMap[key](statePrevious));
 }
Exemplo n.º 6
0
 public bool GetButton(Xbox360GamepadButton key)
 {
     return(buttonsToFuncsMap[key](stateCurrent));
 }
Exemplo n.º 7
0
 public bool DidButtonPressEnd(Xbox360GamepadButton key)
 {
     return(!GetButton(key) && GetButtonPrevious(key));
 }
Exemplo n.º 8
0
 public bool DidButtonPressBegin(Xbox360GamepadButton key)
 {
     return(GetButton(key) && !GetButtonPrevious(key));
 }