forked from KolibriOS/kolibrios
git-svn-id: svn://kolibrios.org@803 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
77a4ede567
commit
052092663c
@ -621,10 +621,11 @@
|
|||||||
* eax = 17 - ®¬¥à äãªæ¨¨
|
* eax = 17 - ®¬¥à äãªæ¨¨
|
||||||
‚®§¢à é ¥¬®¥ § 票¥:
|
‚®§¢à é ¥¬®¥ § 票¥:
|
||||||
* ¥á«¨ ¡ãä¥à ¯ãáâ, ¢®§¢à é ¥âáï eax=1
|
* ¥á«¨ ¡ãä¥à ¯ãáâ, ¢®§¢à é ¥âáï eax=1
|
||||||
* ₯᫨ ‘γδ₯ΰ ₯―γαβ, β<> ’<>§’ΰ ι ₯βαο al=0, αβ ΰθ¨₯ 24 ‘¨β eax
|
* ₯᫨ ‘γδ₯ΰ ₯ ―γαβ, β<>£€ ’<>§’ΰ ι ₯βαο: αβ ΰθ¨₯ 24 ‘¨β eax
|
||||||
ᮤ¥à¦ â ¨¤¥â¨ä¨ª â®à ª®¯ª¨ (¢ ç áâ®áâ¨, ¢ ah ®ª §ë¢ ¥âáï
|
ᮤ¥à¦ â ¨¤¥â¨ä¨ª â®à ª®¯ª¨ (¢ ç áâ®áâ¨, ¢ ah ®ª §ë¢ ¥âáï
|
||||||
¬« ¤è¨© ¡ ©â ¨¤¥â¨ä¨ª â®à ; ¥á«¨ ¢á¥ ª®¯ª¨ ¨¬¥îâ ¨¤¥â¨ä¨ª â®à,
|
¬« ¤è¨© ¡ ©â ¨¤¥â¨ä¨ª â®à ; ¥á«¨ ¢á¥ ª®¯ª¨ ¨¬¥îâ ¨¤¥â¨ä¨ª â®à,
|
||||||
¬₯μ訩 256, β<> €«ο ΰ §«¨η₯¨ο €<>αβ β<C2A0>η<CEB7> ah)
|
¬₯μ訩 256, β<> €«ο ΰ §«¨η₯¨ο €<>αβ β<C2A0>η<CEB7> ah),
|
||||||
|
’ al ’<>§’ΰ ι ₯βαο 0 - ₯᫨ ¨α―<CEB1>«μ§<CEBC>’ « αμ «₯’ ο ͺ<CDBA>―ͺ ¬λθ¨, ¨«¨ ‘¨β β<>© ͺ<CDBA>―ͺ¨ ¬λθ¨, ͺ<>β<EFBFBD>ΰ ο ¨α―<CEB1>«μ§<CEBC>’ « αμ.
|
||||||
‡ ¬¥ç ¨ï:
|
‡ ¬¥ç ¨ï:
|
||||||
* "<22>ãä¥à" åà ¨â ⮫쪮 ®¤ã ª®¯ªã, ¯à¨ ¦ ⨨ ®¢®© ª®¯ª¨
|
* "<22>ãä¥à" åà ¨â ⮫쪮 ®¤ã ª®¯ªã, ¯à¨ ¦ ⨨ ®¢®© ª®¯ª¨
|
||||||
¨ä®à¬ æ¨ï ® áâ ன â¥àï¥âáï.
|
¨ä®à¬ æ¨ï ® áâ ன â¥àï¥âáï.
|
||||||
|
@ -613,10 +613,11 @@ Parameters:
|
|||||||
* eax = 17 - function number
|
* eax = 17 - function number
|
||||||
Returned value:
|
Returned value:
|
||||||
* if the buffer is empty, function returns eax=1
|
* if the buffer is empty, function returns eax=1
|
||||||
* if the buffer is not empty, function returns al=0,
|
* if the buffer is not empty, function returns:
|
||||||
high 24 bits of eax contain button identifier (in particular, ah
|
high 24 bits of eax contain button identifier (in particular, ah
|
||||||
contains low byte of the identifier; if all buttons have
|
contains low byte of the identifier; if all buttons have
|
||||||
the identifier less than 256, ah is enough to distinguish).
|
the identifier less than 256, ah is enough to distinguish),
|
||||||
|
and al contain 0 - if used left mouse button or bit of the used another mouse button
|
||||||
Remarks:
|
Remarks:
|
||||||
* "Buffer" keeps only one button, at pressing the new button the
|
* "Buffer" keeps only one button, at pressing the new button the
|
||||||
information about old is lost.
|
information about old is lost.
|
||||||
|
@ -563,6 +563,13 @@ checkbuttons:
|
|||||||
call negativebutton
|
call negativebutton
|
||||||
|
|
||||||
pushad
|
pushad
|
||||||
|
; // Alver 22.06.2008 // {
|
||||||
|
push eax
|
||||||
|
mov al, byte [BTN_DOWN]
|
||||||
|
mov byte [btn_down_determ], al
|
||||||
|
pop eax
|
||||||
|
; } \\ Alver \\
|
||||||
|
|
||||||
cbwaitmouseup:
|
cbwaitmouseup:
|
||||||
|
|
||||||
call checkidle
|
call checkidle
|
||||||
@ -586,6 +593,7 @@ iglobal
|
|||||||
mx dw 0x0 ; keeps the x mouse's position when it was clicked
|
mx dw 0x0 ; keeps the x mouse's position when it was clicked
|
||||||
my dw 0x0 ; keeps the y mouse's position when it was clicked
|
my dw 0x0 ; keeps the y mouse's position when it was clicked
|
||||||
bPressedMouseXY_B db 0x0
|
bPressedMouseXY_B db 0x0
|
||||||
|
btn_down_determ db 0x0 ; << // Alver 22.06.2008// <<
|
||||||
endg
|
endg
|
||||||
|
|
||||||
pusha
|
pusha
|
||||||
|
@ -7,6 +7,14 @@
|
|||||||
|
|
||||||
$Revision$
|
$Revision$
|
||||||
|
|
||||||
|
; // Alver 22.06.2008 // {
|
||||||
|
align 4
|
||||||
|
dtext_asciiz_esi: ; for skins title out
|
||||||
|
push eax
|
||||||
|
xor eax, eax
|
||||||
|
inc eax
|
||||||
|
jmp dtext.1
|
||||||
|
; } \\ Alver \\
|
||||||
|
|
||||||
align 4
|
align 4
|
||||||
dtext: ; Text String Output (rw by Johnny_B[john@kolibrios.org])
|
dtext: ; Text String Output (rw by Johnny_B[john@kolibrios.org])
|
||||||
@ -19,6 +27,11 @@ dtext: ; Text String Output (rw by Johnny_B[john@kolibrios.org])
|
|||||||
; edx start of text
|
; edx start of text
|
||||||
; edi 1 force
|
; edi 1 force
|
||||||
|
|
||||||
|
; // Alver 22.06.2008 // {
|
||||||
|
push eax
|
||||||
|
xor eax, eax
|
||||||
|
.1:
|
||||||
|
; } \\ Alver \\
|
||||||
pushad
|
pushad
|
||||||
call [disable_mouse]
|
call [disable_mouse]
|
||||||
|
|
||||||
@ -37,6 +50,12 @@ dtext: ; Text String Output (rw by Johnny_B[john@kolibrios.org])
|
|||||||
.test_asciiz:
|
.test_asciiz:
|
||||||
cmp byte [edx], 0
|
cmp byte [edx], 0
|
||||||
jz .end
|
jz .end
|
||||||
|
; // Alver 22.06.2008 // {
|
||||||
|
cmp byte [esp+28], 1
|
||||||
|
jne @f
|
||||||
|
dec esi
|
||||||
|
js .end
|
||||||
|
; } \\ Alver \\
|
||||||
@@:
|
@@:
|
||||||
inc edx
|
inc edx
|
||||||
pushad
|
pushad
|
||||||
@ -109,4 +128,5 @@ dtext: ; Text String Output (rw by Johnny_B[john@kolibrios.org])
|
|||||||
jmp .loop
|
jmp .loop
|
||||||
.end:
|
.end:
|
||||||
popad
|
popad
|
||||||
|
pop eax ; << // Alver 22.06.2008 // <<
|
||||||
ret
|
ret
|
||||||
|
@ -2515,6 +2515,10 @@ sys_getbutton:
|
|||||||
jz .exit
|
jz .exit
|
||||||
mov eax, [BTN_BUFF]
|
mov eax, [BTN_BUFF]
|
||||||
shl eax, 8
|
shl eax, 8
|
||||||
|
; // Alver 22.06.2008 // {
|
||||||
|
mov al, byte [btn_down_determ]
|
||||||
|
and al,0xFE ; delete left button bit
|
||||||
|
; } \\ Alver \\
|
||||||
mov [BTN_COUNT], byte 0
|
mov [BTN_COUNT], byte 0
|
||||||
mov [esp + 32], eax
|
mov [esp + 32], eax
|
||||||
.exit:
|
.exit:
|
||||||
@ -2925,7 +2929,10 @@ draw_window_caption:
|
|||||||
mov ecx,[common_colours+16];0x00FFFFFF
|
mov ecx,[common_colours+16];0x00FFFFFF
|
||||||
or ecx, 0x80000000
|
or ecx, 0x80000000
|
||||||
xor edi,edi
|
xor edi,edi
|
||||||
call dtext
|
; // Alver 22.06.2008 // {
|
||||||
|
; call dtext
|
||||||
|
call dtext_asciiz_esi
|
||||||
|
; } \\ Alver \\
|
||||||
|
|
||||||
@@:
|
@@:
|
||||||
;--------------------------------------------------------------
|
;--------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user