add comment to SnesInput
This commit is contained in:
parent
02c1907d26
commit
3dbf2d96c6
3
main.js
3
main.js
@ -12,6 +12,9 @@ function bound(low, x, high) {
|
|||||||
return Math.max(low, Math.min(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 {
|
class SnesInput {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.up = false;
|
this.up = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user