Skip to content

Commit

Permalink
Improve emulator compatibility for input lib
Browse files Browse the repository at this point in the history
Enable VBLANK interrupts to prevent KEY getting stuck in the HALT instruction on some emulators, because support for the HILO interrupt is often unreliable.
  • Loading branch information
tkers committed Jun 16, 2023
1 parent 428fcf5 commit e131cc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/input.fs
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ PADF_DOWN constant k-down
rIE c@ or rIE c! ;

: init-input ( -- )
IEF_HILO enable-interrupt-flags ;
IEF_HILO IEF_VBLANK or
enable-interrupt-flags ;

0 comments on commit e131cc8

Please sign in to comment.