Using the new Input System
We have been using the Input class to detect the buttons and axes being pressed, and for our simple usage that is more than enough. But the default Unity input system has its limitations regarding extensibility to support new input hardware and mappings.
In this section, we will explore the following concepts:
- Installing the new Input System
- Creating Input Mappings
- Using Mappings in scripts
Let’s start exploring how to install the new Input System.
Installing the new Input System
To start using the new Input System, it needs to be installed like any other package we have installed so far, using the Package Manager. The package is just called Input System, so go ahead and install it as usual. In this case we are using version 1.4.2, but a newer one may be available when you read this chapter.
Figure 6.53: Installing the new Input System package
By default, when you install the Input System, it...