C# Class ControllerInputManager, Malisse

显示文件 Open project: Collegiennes/Malisse Class Usage Examples

Public Methods

Method Description
AddButtonAlias ( BaseController, buttonId, string alias ) : void
AddController ( BaseController, controller ) : ControllerInputManager.eControllerId
AddKeyboard1Controller ( ) : void
AddKeyboard2Controller ( ) : void
AddMouseController ( ) : void
GetButton ( ) : BaseController.eButtonId>.Dictionary
GetButton ( ControllerInputManager, controllerId ) : List
GetButton ( BaseController, buttonId ) : List
GetButton ( string alias ) : List
GetButton ( ControllerInputManager, controllerId, BaseController, buttonId ) : bool
GetButton ( ControllerInputManager, controllerId, string alias ) : bool
GetButtonAlias ( string alias ) : BaseController.eButtonId
GetButtonDown ( ) : BaseController.eButtonId>.Dictionary
GetButtonDown ( ControllerInputManager, controllerId ) : List
GetButtonDown ( BaseController, buttonId ) : List
GetButtonDown ( string alias ) : List
GetButtonDown ( ControllerInputManager, controllerId, BaseController, buttonId ) : bool
GetButtonDown ( ControllerInputManager, controllerId, string alias ) : bool
GetButtonUp ( ) : BaseController.eButtonId>.Dictionary
GetButtonUp ( ControllerInputManager, controllerId ) : List
GetButtonUp ( BaseController, buttonId ) : List
GetButtonUp ( string alias ) : List
GetButtonUp ( ControllerInputManager, controllerId, BaseController, buttonId ) : bool
GetButtonUp ( ControllerInputManager, controllerId, string alias ) : bool
GetController ( ControllerInputManager, controllerId ) : BaseController,
GetDPad ( ) : Vector2>.Dictionary
GetDPad ( ControllerInputManager, controllerId ) : Vector2
GetL2 ( ) : float>.Dictionary
GetL2 ( ControllerInputManager, controllerId ) : float
GetLeftJoystick ( ) : Vector2>.Dictionary
GetLeftJoystick ( ControllerInputManager, controllerId ) : Vector2
GetMotion ( ) : Vector2>.Dictionary
GetMotion ( ControllerInputManager, controllerId ) : Vector2
GetR2 ( ) : float>.Dictionary
GetR2 ( ControllerInputManager, controllerId ) : float
GetRightJoystick ( ) : Vector2>.Dictionary
GetRightJoystick ( ControllerInputManager, controllerId ) : Vector2
Init ( ) : void
RemoveController ( ControllerInputManager, controllerId ) : bool

Private Methods

Method Description
ControllerInputManager ( ) : System
CreateController ( string joystickName ) : BaseController,
GetControllerDetectionName ( Type, controllerType ) : string
InitInputDetection ( ) : void
PostInputDetection ( ) : void
SetAliases ( ) : void

Method Details

AddButtonAlias() public method

public AddButtonAlias ( BaseController, buttonId, string alias ) : void
buttonId BaseController,
alias string
return void

AddController() public method

public AddController ( BaseController, controller ) : ControllerInputManager.eControllerId
controller BaseController,
return ControllerInputManager.eControllerId

AddKeyboard1Controller() public method

public AddKeyboard1Controller ( ) : void
return void

AddKeyboard2Controller() public method

public AddKeyboard2Controller ( ) : void
return void

AddMouseController() public method

public AddMouseController ( ) : void
return void

GetButton() public method

public GetButton ( ) : BaseController.eButtonId>.Dictionary
return BaseController.eButtonId>.Dictionary

GetButton() public method

public GetButton ( ControllerInputManager, controllerId ) : List
controllerId ControllerInputManager,
return List

GetButton() public method

public GetButton ( BaseController, buttonId ) : List
buttonId BaseController,
return List

GetButton() public method

public GetButton ( string alias ) : List
alias string
return List

GetButton() public method

public GetButton ( ControllerInputManager, controllerId, BaseController, buttonId ) : bool
controllerId ControllerInputManager,
buttonId BaseController,
return bool

GetButton() public method

public GetButton ( ControllerInputManager, controllerId, string alias ) : bool
controllerId ControllerInputManager,
alias string
return bool

GetButtonAlias() public method

public GetButtonAlias ( string alias ) : BaseController.eButtonId
alias string
return BaseController.eButtonId

GetButtonDown() public method

public GetButtonDown ( ) : BaseController.eButtonId>.Dictionary
return BaseController.eButtonId>.Dictionary

GetButtonDown() public method

public GetButtonDown ( ControllerInputManager, controllerId ) : List
controllerId ControllerInputManager,
return List

GetButtonDown() public method

public GetButtonDown ( BaseController, buttonId ) : List
buttonId BaseController,
return List

GetButtonDown() public method

public GetButtonDown ( string alias ) : List
alias string
return List

GetButtonDown() public method

public GetButtonDown ( ControllerInputManager, controllerId, BaseController, buttonId ) : bool
controllerId ControllerInputManager,
buttonId BaseController,
return bool

GetButtonDown() public method

public GetButtonDown ( ControllerInputManager, controllerId, string alias ) : bool
controllerId ControllerInputManager,
alias string
return bool

GetButtonUp() public method

public GetButtonUp ( ) : BaseController.eButtonId>.Dictionary
return BaseController.eButtonId>.Dictionary

GetButtonUp() public method

public GetButtonUp ( ControllerInputManager, controllerId ) : List
controllerId ControllerInputManager,
return List

GetButtonUp() public method

public GetButtonUp ( BaseController, buttonId ) : List
buttonId BaseController,
return List

GetButtonUp() public method

public GetButtonUp ( string alias ) : List
alias string
return List

GetButtonUp() public method

public GetButtonUp ( ControllerInputManager, controllerId, BaseController, buttonId ) : bool
controllerId ControllerInputManager,
buttonId BaseController,
return bool

GetButtonUp() public method

public GetButtonUp ( ControllerInputManager, controllerId, string alias ) : bool
controllerId ControllerInputManager,
alias string
return bool

GetController() public method

public GetController ( ControllerInputManager, controllerId ) : BaseController,
controllerId ControllerInputManager,
return BaseController,

GetDPad() public method

public GetDPad ( ) : Vector2>.Dictionary
return Vector2>.Dictionary

GetDPad() public method

public GetDPad ( ControllerInputManager, controllerId ) : Vector2
controllerId ControllerInputManager,
return Vector2

GetL2() public method

public GetL2 ( ) : float>.Dictionary
return float>.Dictionary

GetL2() public method

public GetL2 ( ControllerInputManager, controllerId ) : float
controllerId ControllerInputManager,
return float

GetLeftJoystick() public method

public GetLeftJoystick ( ) : Vector2>.Dictionary
return Vector2>.Dictionary

GetLeftJoystick() public method

public GetLeftJoystick ( ControllerInputManager, controllerId ) : Vector2
controllerId ControllerInputManager,
return Vector2

GetMotion() public method

public GetMotion ( ) : Vector2>.Dictionary
return Vector2>.Dictionary

GetMotion() public method

public GetMotion ( ControllerInputManager, controllerId ) : Vector2
controllerId ControllerInputManager,
return Vector2

GetR2() public method

public GetR2 ( ) : float>.Dictionary
return float>.Dictionary

GetR2() public method

public GetR2 ( ControllerInputManager, controllerId ) : float
controllerId ControllerInputManager,
return float

GetRightJoystick() public method

public GetRightJoystick ( ) : Vector2>.Dictionary
return Vector2>.Dictionary

GetRightJoystick() public method

public GetRightJoystick ( ControllerInputManager, controllerId ) : Vector2
controllerId ControllerInputManager,
return Vector2

Init() public method

public Init ( ) : void
return void

RemoveController() public method

public RemoveController ( ControllerInputManager, controllerId ) : bool
controllerId ControllerInputManager,
return bool