Input
To handle user interactions effectively, games need constant access to input data. In Flax, you can read player inputs by utilizing the Input class.
Input handling
Flax supports two types of input:
- Low-level API: This gives you direct access to the state of connected input devices. (eg. mouse position, gamepad buttons)
- High-level API: This uses the virtual input feature to provide more intuitive and unified input data across different platforms and input devices. (eg. "Move X" axis, "Jump" event)
Games will need to use the C# scripting API to access input data. This can be done by using the Input class. It provides Low Level and High Level input data at runtime and in-editor playmode.