Skip to content

5. Arcade Input

Raphaël Tétreault edited this page Oct 23, 2025 · 9 revisions

TODO

  • Utility Script
  • Controls (XBOX... now arcade cab)
  • Debug scenes

Overview

The static class ArcadeInput.cs is meant to provide you with the necessary code to easily interface with the arcade cabinet controls. It provides both keyboard controls and XBOX Series X|S controller controls for testing purposes.

Control Mappings

8-way joystick gate

Test Scenes

There are two test scenes in the project to help debug input.

debug-arcade-input

This scene displays the input mapped through ArcadeInput.cs on screen for both players. This is a good scene to use to check how the keyboard controls and/or XBOX Series X|S controller maps to the input class.

A reminder that you can book out XBOX controllers from Mohawk's Equipment Room, though you must first register and wait for someone to confirm your account creation before booking (one-time setup). https://equipmentroom.mohawkcollege.ca/

debug-input.unity

This scene displays the input native to Unity's default Input Manager before it is handled by Arcadeinput.cs. If the previous scene is not working, this scene is a good sanity check.

Code Usage

// example

Clone this wiki locally