InputMapConvertToAxis
ceramic.InputMapConvertToAxis (Class)
Helper class for converting digital button inputs to analog axis values.
Used internally by InputMap to simulate analog input from digital buttons, such as using arrow keys to simulate a joystick. Stores the target axis index and the value to apply when activated.
Instance Members
| Name | Type | Description |
|---|---|---|
index |
Int | The index of the target axis action |
value |
Int | The axis value to apply (stored as int * 1000 for precision) |
Private Members
index: IntThe index of the target axis action
value: IntThe axis value to apply (stored as int * 1000 for precision)
Metadata
| Name | Parameters |
|---|---|
:hxGen |
- |
:structInit |
- |
:allow |
ceramic.InputMapImpl |