Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/coolboy-multirom-builder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2020-12-22 16:31:22 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2020-12-22 16:31:22 +0300
commit73cfb12cf63c8bf25c0b408104de0d6249e66ce7 (patch)
treefdd9c52c0cf1e5088d43aee84472509fd37b8a2e /buttons.asm
parentc187d98c30c52f6e2476a6722a1f73064b7353a4 (diff)
Buttons repeat frames moved to constant, reduced to 30
Diffstat (limited to 'buttons.asm')
-rw-r--r--buttons.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/buttons.asm b/buttons.asm
index 7739057..6e33347 100644
--- a/buttons.asm
+++ b/buttons.asm
@@ -19,13 +19,13 @@ read_controller:
txa
and #%11110000 ; up/down/left/right
beq .no_up_down ; is pressed?
- inc <BUTTONS_HOLD_TIME ; increasing hold time
+ inc <BUTTONS_HOLD_TIME ; increasing hold time
lda <BUTTONS_HOLD_TIME
- cmp #60 ; is it holding long enought?
+ cmp #BUTTON_REPEAT_FRAMES ; is it holding long enought?
bcc .end ; no
lda #0 ; yes, it's long enought, so lets "release" buttons
sta <BUTTONS
- lda #50 ; autorepeat time
+ lda #(BUTTON_REPEAT_FRAMES-10) ; autorepeat time = 10
sta <BUTTONS_HOLD_TIME
jmp .end
.no_up_down: