Difference between revisions of "Component: Joystick (Controls)"
From Flowcode Help
Jump to navigationJump to searchLine 16: | Line 16: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 24: | Line 26: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 48: | Line 52: | ||
| colspan="2" | Range 0-1 Where 0=X, 1=Y | | colspan="2" | Range 0-1 Where 0=X, 1=Y | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] - | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
Line 66: | Line 70: | ||
| colspan="2" | Range 0-1 Where 0=X, 1=Y | | colspan="2" | Range 0-1 Where 0=X, 1=Y | ||
|- | |- | ||
− | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] - | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT |
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} |
Revision as of 13:29, 17 November 2021
Author | Matrix TSL |
Version | 1.0 |
Category | Controls |
Contents
Joystick component
A simple joystick component allowing for easy mouse or touchscreen based analogue control.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
ReadAxisAsFloat |
Reads a single axis of the joystick and returns as a floating point value. | |
![]() |
Axis |
Range 0-1 Where 0=X, 1=Y | |
![]() |
Return |
![]() |
ReadAxisAsInt |
Reads a single axis of the joystick and returns as a signed integer value. | |
![]() |
Axis |
Range 0-1 Where 0=X, 1=Y | |
![]() |
Return |