Digital input

This is the most basic input type, capable of returning one of two states, active (1) or inactive (0). A simple example of digital input lies in the keys of a standard computer keyboard. A single key can either be pressed or not pressed at all, there's no other state in between.

Get Practical Game Design 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.