/programs/develop/libraries/console/console.asm |
---|
2038,7 → 2038,28 |
mov [con.bGetchRequested], 1 |
jmp con.msg_loop |
con.mouse: |
push 37 |
pop eax |
push 7 |
pop ebx |
int 0x40 |
test eax, eax |
jz .no_scrollmouse |
cwde |
add eax, [con.wnd_ypos] |
jg @f |
xor eax, eax |
@@: |
mov ebx, [con.scr_height] |
sub ebx, [con.wnd_height] |
cmp eax, ebx |
jb @f |
mov eax, ebx |
@@: |
mov [con.wnd_ypos], eax |
jmp con.redraw_image |
.no_scrollmouse: |
xor eax, eax |
xchg eax, dword [con.bUpPressed] |
mov dword [con.bUpPressed_saved], eax |
push 37 |