Platformer Pro  2.3.2
A platform game kit for Unity.
PlatformerPro.AxisAsButton Class Reference

Treats an axis like a button. More...

Inheritance diagram for PlatformerPro.AxisAsButton:

Public Attributes

Input input
 The input that we will set button state on. More...
 
string axisName = "Joystick1Axis1"
 Axis to treat like a button. More...
 
int actionButtonNumber
 The index of the action button. More...
 
float pushThreshold = 0.7f
 How far the button has to be pushed down to count as pushed. More...
 
float releaseThreshold = 0.5f
 How far the button has to be released to count as released. More...
 

Protected Member Functions

virtual void Init ()
 Init this instance. More...
 
virtual void CheckAxis ()
 Checks the axis. More...
 

Protected Attributes

bool isPushed
 Is the button currently pushed down. More...
 

Detailed Description

Treats an axis like a button.

Member Function Documentation

◆ CheckAxis()

virtual void PlatformerPro.AxisAsButton.CheckAxis ( )
protectedvirtual

Checks the axis.

◆ Init()

virtual void PlatformerPro.AxisAsButton.Init ( )
protectedvirtual

Init this instance.

Member Data Documentation

◆ actionButtonNumber

int PlatformerPro.AxisAsButton.actionButtonNumber

The index of the action button.

◆ axisName

string PlatformerPro.AxisAsButton.axisName = "Joystick1Axis1"

Axis to treat like a button.

◆ input

Input PlatformerPro.AxisAsButton.input

The input that we will set button state on.

◆ isPushed

bool PlatformerPro.AxisAsButton.isPushed
protected

Is the button currently pushed down.

◆ pushThreshold

float PlatformerPro.AxisAsButton.pushThreshold = 0.7f

How far the button has to be pushed down to count as pushed.

◆ releaseThreshold

float PlatformerPro.AxisAsButton.releaseThreshold = 0.5f

How far the button has to be released to count as released.


The documentation for this class was generated from the following file: