Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

XboxAxis

Jibran Syed edited this page Sep 9, 2013 · 9 revisions

<- Back to Coding References

Description

enum XboxAxis contains all Xbox inputs that return analog values (as opposed to a binary true or false). These values are floats between -1 and 1 (with the exception of the triggers, which return from a float from 0 to 1). They are used in functions like GetAxis() and GetAxisRaw().

When using axis input, deadzone definitions are provided by Unity's InputManager (a default value of 0.19) and are thus not handled by XboxCtrlrInput.

Contents

enum XboxAxis
{
    LeftStickX,
    LeftStickY,
    RightStickX,
    RightStickY,
    LeftTrigger,
    RightTrigger
}

Axis Map

AxisMap

<- Back to Coding References

Clone this wiki locally