From 1923d7a71c91cfee86da1c73f821355ee4eef027 Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Mon, 15 Feb 2021 17:55:46 -0800 Subject: [PATCH] Fix gamepad support Thanks @JasonWoof --- js/apple2.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/apple2.ts b/js/apple2.ts index 5556d0c..a8e16f2 100644 --- a/js/apple2.ts +++ b/js/apple2.ts @@ -7,6 +7,7 @@ import { debug } from './util'; import SYMBOLS from './symbols'; import { Restorable } from './types'; +import { processGamepad } from './ui/gamepad'; interface Options { characterRom: any, @@ -142,6 +143,7 @@ export class Apple2 implements Restorable { this.stats.frames++; this.io.tick(); this.tick(); + processGamepad(this.io); if (!this.paused && requestAnimationFrame) { this.runAnimationFrame = requestAnimationFrame(runFn);