From 3dbf2d96c6200c39ae95f9546721507cf3670816 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Wed, 25 Sep 2019 16:17:44 -0400 Subject: [PATCH] add comment to SnesInput --- main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.js b/main.js index 1ea815b..53662ad 100644 --- a/main.js +++ b/main.js @@ -12,6 +12,9 @@ function bound(low, x, high) { return Math.max(low, Math.min(x, high)); } +// Representation of the state of the buttons on an SNES controller. (This may +// be the result of keyboard or gamepad input, which get mapped to the +// standard SNES buttons.) class SnesInput { constructor() { this.up = false;