2019-11-30 14:48:36 +00:00
|
|
|
public INPUT_WAIT_FOR_CHANGE
|
|
|
|
input_wait_for_change proc far
|
2018-09-17 20:10:42 +00:00
|
|
|
@@frames = word ptr 6
|
|
|
|
|
|
|
|
push bp
|
|
|
|
mov bp, sp
|
|
|
|
|
|
|
|
@@release_loop:
|
|
|
|
call _input_reset_sense_held
|
|
|
|
or ax, ax
|
|
|
|
jnz short @@release_loop
|
|
|
|
mov bp, [bp+@@frames]
|
|
|
|
|
|
|
|
@@press_loop:
|
|
|
|
call _input_reset_sense_held
|
|
|
|
or ax, ax
|
|
|
|
jnz short @@ret
|
|
|
|
mov ax, vsync_Count1
|
|
|
|
|
|
|
|
@@vsync:
|
|
|
|
cmp ax, vsync_Count1
|
|
|
|
jz short @@vsync
|
|
|
|
or bp, bp
|
|
|
|
jz short @@press_loop
|
|
|
|
dec bp
|
|
|
|
jnz short @@press_loop
|
|
|
|
|
|
|
|
@@ret:
|
|
|
|
pop bp
|
|
|
|
retf 2
|
2019-11-30 14:48:36 +00:00
|
|
|
input_wait_for_change endp
|