Wobbly Life Mod SDK
 
Loading...
Searching...
No Matches
ModWobblyLife.ModInputPlayer Class Reference

Used to get input from a certain player. More...

Public Member Functions

float GetAxis (string actionName)
 Returns the axis of an action.
 
bool GetAnyButton ()
 Returns whether this player is holding any buttons down.
 
bool GetAnyButtonDown ()
 Returns whether this player has pressed any button this frame.
 
bool GetButton (string actionName)
 Returns whether this action is being held down for this player.
 
bool GetButtonDown (string actionName)
 Returns whether this action was pressed this frame for this player.
 
Sprite GetGlyth (string actionName)
 Returns the button icon for this action for this player.
 

Detailed Description

Used to get input from a certain player.

Member Function Documentation

◆ GetAnyButton()

bool ModWobblyLife.ModInputPlayer.GetAnyButton ( )

Returns whether this player is holding any buttons down.

Returns

◆ GetAnyButtonDown()

bool ModWobblyLife.ModInputPlayer.GetAnyButtonDown ( )

Returns whether this player has pressed any button this frame.

Returns

◆ GetAxis()

float ModWobblyLife.ModInputPlayer.GetAxis ( string  actionName)

Returns the axis of an action.

Parameters
actionName
Returns

◆ GetButton()

bool ModWobblyLife.ModInputPlayer.GetButton ( string  actionName)

Returns whether this action is being held down for this player.

Parameters
actionName
Returns

◆ GetButtonDown()

bool ModWobblyLife.ModInputPlayer.GetButtonDown ( string  actionName)

Returns whether this action was pressed this frame for this player.

Parameters
actionName
Returns

◆ GetGlyth()

Sprite ModWobblyLife.ModInputPlayer.GetGlyth ( string  actionName)

Returns the button icon for this action for this player.

Parameters
actionName
Returns