> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Axis

> Axis

Definition of the mapping of touch controls to the physical analog control equivalent.

## Properties

[`input`- *string*](#inputs). The type of touch [input](#inputs) that this control accepts.\
[`output` - *string*](#outputs). The gamepad axes, axis, or polar joystick action this control maps to.\
[`deadzone`](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-deadzone) - [*object*](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-deadzone.md), *optional*. The size and shape, of the area where no input will be read or mapped.\
`sensitivity` - *number*, *optional*. Multiplier applied after response curve calculation.\
[`responseCurve` - *object*](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-responsecurve), *optional*. Shape of the [response curve](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-responsecurve.md).

### Input values

| Constant | Description |
| :- | :- |
| axisXY | Full 2D input, reads both X-axis and Y-axis values. |
| axisX | 1D input, only reads X-axis values. |
| axisY | 1D input, only reads Y-axis values. |
| axisUp | Polar input. |
| axisDown | Polar input. |
| axisLeft | Polar input. |
| axisRight | Polar input. |

### Output values

| Constant | Description |
| :- | :- |
| leftJoystick | 2D output to the left joystick. |
| rightJoystick | 2D output to the right joystick. |
| leftJoystickX | 1D ouptut to the left joystick X-axis. |
| leftJoystickY | 1D ouptut to the left joystick Y-axis. |
| rightJoystickX | 1D ouptut to the right joystick X-axis. |
| rightJoystickY | 1D ouptut to the left joystick Y-axis. |
| leftJoystickLeft | Polar output to the left joystick, left direction. |
| leftJoystickRight | Polar output to the left joystick, right direction. |
| leftJoystickUp | Polar output to the left joystick, up direction. |
| leftJoystickDown | Polar output to the left joystick, down direction. |
| rightJoystickLeft | Polar output to the right joystick, left direction. |
| rightJoystickRight | Polar output to the right joystick, right direction. |
| rightJoystickUp | Polar output to the right joystick, up direction. |
| rightJoystickDown | Polar output to the right joystick, down direction. |
| relativeMouse | 2D output to the mouse. |
| relativeMouseX | 1D output to the mouse X-axis. |
| relativeMouseY | 2D output to the mouse Y-axis. |
| relativeMouseLeft | Polar output to the mouse, left direction. |
| relativeMouseRight | Polar output to the mouse right direction. |
| relativeMouseUp | Polar output to the mouse, up direction. |
| relativeMouseDown | Polar output to the mouse, down direction. |

## Remarks

A 2D input must map to a 2D output, similarly a 1D input must map to a 1D output, and a single direction must map to a polar output.

## Related Controls

[Accelerometer](https://docs.xbox.com/reference/system/touchadaptationkit/sensor-controls/game-streaming-touch-accelerometer.md)\
[Gyroscope](https://docs.xbox.com/reference/system/touchadaptationkit/sensor-controls/game-streaming-touch-gyroscope.md)\
[Joystick](https://docs.xbox.com/reference/system/touchadaptationkit/controls/game-streaming-touch-joystick.md)\
[Throttle](https://docs.xbox.com/reference/system/touchadaptationkit/controls/game-streaming-touch-throttle.md)
[Touchpad](https://docs.xbox.com/reference/system/touchadaptationkit/controls/game-streaming-touch-touchpad.md)

## See Also

[Touch Adaptation Kit Reference](https://docs.xbox.com/build/core-features/common/game-streaming/game-streaming-touch-touch-adaptation-kit-overview.md)\
[Deadzone](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-deadzone.md)\
[Response Curve](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-responsecurve.md)


## Related topics

- [ThrottleAxis](https://docs.xbox.com/reference/system/touchadaptationkit/types/game-streaming-touch-throttle-axis.md)
- [GetExtraAxisIndexes](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getextraaxisindexes.md)
- [GameInputAxisMapping](https://docs.xbox.com/reference/input/gameinput/structs/gameinputaxismapping.md)
- [GetExtraAxisCount](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputdevice/methods/igameinputdevice_getextraaxiscount.md)
- [GetControllerAxisCount](https://docs.xbox.com/reference/input/gameinput/interfaces/igameinputreading/methods/igameinputreading_getcontrolleraxiscount.md)
