Property | Type | Description | |
---|---|---|---|
actions | |||
gamepadControls | |||
keyboardAndMouse |
Method | Description | |
---|---|---|
ControlManager ( ) : System | ||
Update ( ) : void | ||
changeGamepadBindings ( ButtonState oldButton, Microsoft.Xna.Framework.Input.GamePadButtons newButton, |
This function will change the Control binding of a single button to another button on the gamepad.
|
|
changeKeyControlBindings ( Keys oldKey, Keys newKey, |
||
disableControls ( bool mouse ) : void |
Allows you to disable the controlls including or exluding the mouse click. True will allow the mouse click, false will disable the mouse click.
|
|
disableMotion ( ) : void | ||
enableControls ( ) : void | ||
enableMotion ( ) : void | ||
updateMouse ( Microsoft.Xna.Framework.Input.MouseState mouse ) : void |
This method was written to test the input information being received from the mouse, rather than testing within the code.
|
Method | Description | |
---|---|---|
reset ( ) : void |
Resets all the thingies.
|
|
setDefaultGamepadControlScheme ( ) : void |
Set the default button scheme for the XBOX360 gamepad controller
|
|
setDefaultMouseAndKeyboardControlScheme ( ) : void |
public changeGamepadBindings ( ButtonState oldButton, Microsoft.Xna.Framework.Input.GamePadButtons newButton, |
||
oldButton | ButtonState | |
newButton | Microsoft.Xna.Framework.Input.GamePadButtons | The button on the gamepad that the action will now be set to |
gamepad | The gamepadState that is already in place | |
return | void |
public changeKeyControlBindings ( Keys oldKey, Keys newKey, |
||
oldKey | Keys | |
newKey | Keys | |
keyboard | ||
return | void |
public disableControls ( bool mouse ) : void | ||
mouse | bool | Whether or not the mouse click will be allowed |
return | void |
public updateMouse ( Microsoft.Xna.Framework.Input.MouseState mouse ) : void | ||
mouse | Microsoft.Xna.Framework.Input.MouseState | MouseState from user's mouse |
return | void |
public GamePadControls,PantheonPrototype gamepadControls | ||
return |