InputSource

InputSource is a type in Retro Gadgets which describes a hardware real-world input that can be mapped onto a virtual input on your gadget.

For example, you can use the Keyboard chip to map a specific key to press a Button, or use the Gamepad chip to map an axis of a physical controller's analog stick to one of the axes of an Analog Stick.

Examples

The cookbook examples Sound Board and Collect the Dot show how to set up different types of input sources for single buttons and axes, respectively.