Namespace GlitchedPolygons.Input
Classes
InputDevice
Abstract input device class.
To add new devices (e.g. xbox controller, steam controller, etc...), derive from this class and implement everything carefully.
If you want to use the
MonoBehaviour.OnEnable or MonoBehaviour.OnDisable messages,
please don't forget to override with a call to base.OnEnable();
or respectively base.OnDisable();.
InputMixer
A centralized input manager that gathers input from multiple InputDevices and mixes their button events and axes together.
Useful if you want to accept input from e.g. an
KeyboardAndMouse
Good old keyboard and mouse.
This InputDevice you will see primarily on standalone PC, Mac & Linux.
Touchscreen
A touchscreen as you know it from smartphones and tablets.
XInput
XInputDotNet wrapper behaviour for singleplayer-oriented xbox controller input sampling.
Bind your desired actions to the various button events in here.
Structs
KeyboardAndMouse.Axis
Keyboard and mouse combo axis.
If the Unity axis string is null or empty, the positive and negative keys will be used.
Otherwise
Input.GetAxis(string) will be used.
Enums
XboxControllerAxis
Xbox One controller axis.
XboxControllerButton
An Xbox One controller button.