C# Class HFTGamepad

Inheritance: MonoBehaviour
Show file Open project: greggman/hft-unity-gamepad Class Usage Examples

Public Properties

Property Type Description
autoChooseColor bool
color Color
controllerOptions ControllerOptions
playerName string

Public Methods

Method Description
Awake ( ) : void
Cleanup ( ) : void
HFTGamepad ( ) : System
HandleAccel ( MessageAccel data ) : void
HandleButton ( MessageButton, data ) : void
HandleDPad ( MessageDPad data ) : void
HandleDisconnect ( object sender, System e ) : void
HandleNameChange ( string name ) : void
HandleOrient ( MessageOrient data ) : void
HandleRot ( MessageRot data ) : void
HandleTouch ( MessageTouch data ) : void
InitializeNetPlayer ( SpawnInfo spawnInfo ) : void
OnDestroy ( ) : void
ReturnPlayer ( ) : void
SendColor ( ) : void
SendControllerOptions ( ) : void
SetDefaultColor ( ) : void
Update ( ) : void
UpdateButton ( int ndx, bool pressed ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

Cleanup() public method

public Cleanup ( ) : void
return void

HFTGamepad() public method

public HFTGamepad ( ) : System
return System

HandleAccel() public method

public HandleAccel ( MessageAccel data ) : void
data MessageAccel
return void

HandleButton() public method

public HandleButton ( MessageButton, data ) : void
data MessageButton,
return void

HandleDPad() public method

public HandleDPad ( MessageDPad data ) : void
data MessageDPad
return void

HandleDisconnect() public method

public HandleDisconnect ( object sender, System e ) : void
sender object
e System
return void

HandleNameChange() public method

public HandleNameChange ( string name ) : void
name string
return void

HandleOrient() public method

public HandleOrient ( MessageOrient data ) : void
data MessageOrient
return void

HandleRot() public method

public HandleRot ( MessageRot data ) : void
data MessageRot
return void

HandleTouch() public method

public HandleTouch ( MessageTouch data ) : void
data MessageTouch
return void

InitializeNetPlayer() public method

public InitializeNetPlayer ( SpawnInfo spawnInfo ) : void
spawnInfo SpawnInfo
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

ReturnPlayer() public method

public ReturnPlayer ( ) : void
return void

SendColor() public method

public SendColor ( ) : void
return void

SendControllerOptions() public method

public SendControllerOptions ( ) : void
return void

SetDefaultColor() public method

public SetDefaultColor ( ) : void
return void

Update() public method

public Update ( ) : void
return void

UpdateButton() public method

public UpdateButton ( int ndx, bool pressed ) : void
ndx int
pressed bool
return void

Property Details

autoChooseColor public property

public bool autoChooseColor
return bool

color public property

public Color color
return Color

controllerOptions public property

public ControllerOptions controllerOptions
return ControllerOptions

playerName public property

public string playerName
return string