mist: finger pointing for buttons works

This commit is contained in:
Vince Weaver 2020-03-11 12:07:15 -04:00
parent 0533bf36ff
commit f57a6b6f5f
2 changed files with 9 additions and 2 deletions

View File

@ -48,11 +48,18 @@ finger_grab:
lda #1
sta IN_SPECIAL
lda DIRECTION
and #DIRECTION_ONLY_POINT
bne special_but_point
lda #<finger_grab_sprite
sta INL
lda #>finger_grab_sprite
jmp finger_draw
special_but_point:
jmp finger_point
finger_not_special:
; check for left/right

View File

@ -50,7 +50,7 @@ button_top_row:
lda XPOS
sec
sbc #25
sbc #24
lsr
bmi done_press
cmp #5
@ -67,7 +67,7 @@ button_bottom_row:
lda XPOS
sec
sbc #26
sbc #25
lsr
bmi done_press
cmp #5