© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
V. G. BruscaAdvanced Unity Game Developmenthttps://doi.org/10.1007/978-1-4842-7851-2_7

7. Input Classes

Victor G Brusca1  
(1)
Edison, NJ, USA
 
In this chapter, we’ll review, in detail, the input classes used to power the game controls. I should mention that Hover Racers is set up to support keyboard, mouse, controller, and touch input. The classes we’ll look at in this chapter are as follows:
  1. 1.

    Character Motor

     
  2. 2.

    FPS Input Controller

     
  3. 3.

    MouseLookNew

     
  4. 4.

    GameState (Touch Input Snippet Only)

     
The CharacterMotor class is perhaps the most complicated of the classes listed. It contains the following subclasses:
  1. 1.

    CharacterMotorMovement

     
  2. 2.

    CharacterMotorSliding

     
  3. 3.

    CharacterMotorJumping ...

Get Advanced Unity Game Development: Build Professional Games with Unity, C#, and Visual Studio now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.