JoystickController Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Example script to demonstrate joystick control in sample scene
public ref class JoystickController : UnityEngine::MonoBehaviour
public class JoystickController : UnityEngine.MonoBehaviour
type JoystickController = class
inherit MonoBehaviour
Public Class JoystickController
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourJoystickController
Constructors
| JoystickController() |
Fields
| MoveSpeed | |
| ReboundSpeed | |
| RotationSpeed | |
| ScaleSpeed | |
| SensitivityForwardBack | |
| SensitivityLeftRight |
Properties
| Mode | |
| TargetObject |
Methods
| JoystickModeMove() |
Set the joystick mode from a UI button. |
| JoystickModeRotate() |
Set the joystick mode from a UI button. |
| JoystickModeScale() |
Set the joystick mode from a UI button. |
| StartDrag() |
The ObjectManipulator script uses this to determine when the joystick is grabbed. |
| StopDrag() |
The ObjectManipulator script uses this to determine when the joystick is released. |