mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
Fix gamepad support
Thanks @JasonWoof
This commit is contained in:
parent
3f966ad608
commit
1923d7a71c
@ -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<State> {
|
||||
this.stats.frames++;
|
||||
this.io.tick();
|
||||
this.tick();
|
||||
processGamepad(this.io);
|
||||
|
||||
if (!this.paused && requestAnimationFrame) {
|
||||
this.runAnimationFrame = requestAnimationFrame(runFn);
|
||||
|
Loading…
Reference in New Issue
Block a user