From 3c6a583190b827c0e88e535d486a4f191ee255c0 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 2 Apr 2024 23:49:52 +0200 Subject: Add a way to safely read from controllers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First of all, move some reading utilities into the new `shared` directory, so controllers can be read by more than one example. Second, even if we keep the example on `basics/input.s` simple, let's provide a safe alternative for the other examples. Signed-off-by: Miquel Sabaté Solà --- basics/flicker.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'basics/flicker.s') diff --git a/basics/flicker.s b/basics/flicker.s index b170d5e..640817a 100644 --- a/basics/flicker.s +++ b/basics/flicker.s @@ -36,7 +36,7 @@ @main_game_loop: ;; NOTE: the logic is pretty simply: read the pad, move the player ;; accordingly, and apply the flickering effect. - jsr Joypad::read + jsr joypad_read jsr Diskun::update ;; NOTE: comment this `jsr` out if you want to see what happens if no -- cgit v1.2.3