testing library

What a test of code that reads a gamepad holds in its place: ScriptedGamepad, a platform whose pads a test plugs, presses and unplugs, installed as GamepadPlatform.instance or handed to a Gamepad.

Its own library, so the package's main library ships no stand-in: an app imports pad_input.dart, its tests this as well.

Classes

ScriptedGamepad
A GamepadPlatform a test holds the controllers of: it plugs a pad into a slot, sets what the pad is doing, and pulls it out again.