mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-29 00:31:52 +00:00
mist: finger pointing for buttons works
This commit is contained in:
parent
0533bf36ff
commit
f57a6b6f5f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user