forked from KolibriOS/kolibrios
Sync language names and IDs for @taskbar, kernel and docs
git-svn-id: svn://kolibrios.org@9822 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
2ee9123f08
commit
3111bdaa18
@ -201,13 +201,13 @@ dll_cur_addr dd MIN_DEFAULT_DLL_ADDR
|
|||||||
|
|
||||||
|
|
||||||
align 4
|
align 4
|
||||||
keyboard dd 1
|
keyboard dd SYSLANG
|
||||||
|
|
||||||
if lang eq en
|
if lang eq en
|
||||||
SYSLANG = 1
|
SYSLANG = 1
|
||||||
else if lang eq fi
|
else if lang eq fi
|
||||||
SYSLANG = 2
|
SYSLANG = 2
|
||||||
else if lang eq de
|
else if lang eq ge
|
||||||
SYSLANG = 3
|
SYSLANG = 3
|
||||||
else if lang eq ru
|
else if lang eq ru
|
||||||
SYSLANG = 4
|
SYSLANG = 4
|
||||||
@ -215,12 +215,16 @@ else if lang eq fr
|
|||||||
SYSLANG = 5
|
SYSLANG = 5
|
||||||
else if lang eq et
|
else if lang eq et
|
||||||
SYSLANG = 6
|
SYSLANG = 6
|
||||||
else if lang eq sp
|
else if lang eq ua
|
||||||
SYSLANG = 7
|
SYSLANG = 7
|
||||||
else if lang eq it
|
else if lang eq it
|
||||||
SYSLANG = 8
|
SYSLANG = 8
|
||||||
else if lang eq ca
|
else if lang eq be
|
||||||
SYSLANG = 9
|
SYSLANG = 9
|
||||||
|
else if lang eq sp
|
||||||
|
SYSLANG = 10
|
||||||
|
else if lang eq ca
|
||||||
|
SYSLANG = 11
|
||||||
else
|
else
|
||||||
display 'unsupported language specified',13,10
|
display 'unsupported language specified',13,10
|
||||||
end if
|
end if
|
||||||
|
@ -146,7 +146,7 @@ Remarks:
|
|||||||
which can be set by subfunction 2 of function 21
|
which can be set by subfunction 2 of function 21
|
||||||
and get by subfunction 2 of function 26.
|
and get by subfunction 2 of function 26.
|
||||||
* As a consequence, ASCII-codes take into account current
|
* As a consequence, ASCII-codes take into account current
|
||||||
keyboard layout (rus/en) as opposed to scancodes.
|
keyboard layout (en, fi, etc) as opposed to scancodes.
|
||||||
* This function notifies only about those hotkeys, which were
|
* This function notifies only about those hotkeys, which were
|
||||||
defined by this thread by subfunction 4 of function 66.
|
defined by this thread by subfunction 4 of function 66.
|
||||||
|
|
||||||
@ -1329,10 +1329,11 @@ Parameters:
|
|||||||
* edx = pointer to layout - table of length 128 bytes
|
* edx = pointer to layout - table of length 128 bytes
|
||||||
Or:
|
Or:
|
||||||
* ecx = 9
|
* ecx = 9
|
||||||
* dx = country identifier (1=eng, 2=fi, 3=ger, 4=rus)
|
* edx = language id: 1=en, 2=fi, 3=ge, 4=ru, 5=fr, 6=et, 7=ua, 8=it,
|
||||||
|
9=be, 10=sp, 11=ca
|
||||||
Returned value:
|
Returned value:
|
||||||
* eax = 0 - success
|
* eax = 0 - success
|
||||||
* eax = 1 - incorrect parameter
|
* eax = -1 - incorrect parameter
|
||||||
Remarks:
|
Remarks:
|
||||||
* If Alt is pressed, the layout with Alt is used;
|
* If Alt is pressed, the layout with Alt is used;
|
||||||
if Alt is not pressed, but Shift is pressed,
|
if Alt is not pressed, but Shift is pressed,
|
||||||
@ -1356,7 +1357,8 @@ Remarks:
|
|||||||
Parameters:
|
Parameters:
|
||||||
* eax = 21 - function number
|
* eax = 21 - function number
|
||||||
* ebx = 5 - subfunction number
|
* ebx = 5 - subfunction number
|
||||||
* ecx = system language (1=eng, 2=fi, 3=ger, 4=rus)
|
* ecx = language id: 1=en, 2=fi, 3=ge, 4=ru, 5=fr, 6=et, 7=ua, 8=it,
|
||||||
|
9=be, 10=sp, 11=ca
|
||||||
Returned value:
|
Returned value:
|
||||||
* eax = 0
|
* eax = 0
|
||||||
Remarks:
|
Remarks:
|
||||||
@ -1571,7 +1573,8 @@ Or:
|
|||||||
* ebx = 2 - subfunction number
|
* ebx = 2 - subfunction number
|
||||||
* ecx = 9
|
* ecx = 9
|
||||||
Returned value:
|
Returned value:
|
||||||
* eax = country identifier (1=eng, 2=fi, 3=ger, 4=rus)
|
* eax = language id: 1=en, 2=fi, 3=ge, 4=ru, 5=fr, 6=et, 7=ua, 8=it,
|
||||||
|
9=be, 10=sp, 11=ca
|
||||||
Remarks:
|
Remarks:
|
||||||
* If Alt is pressed, the layout with Alt is used;
|
* If Alt is pressed, the layout with Alt is used;
|
||||||
if Alt is not pressed, but Shift is pressed,
|
if Alt is not pressed, but Shift is pressed,
|
||||||
@ -1596,7 +1599,8 @@ Parameters:
|
|||||||
* eax = 26 - function number
|
* eax = 26 - function number
|
||||||
* ebx = 5 - subfunction number
|
* ebx = 5 - subfunction number
|
||||||
Returned value:
|
Returned value:
|
||||||
* eax = system language (1=eng, 2=fi, 3=ger, 4=rus)
|
* eax = language id: 1=en, 2=fi, 3=ge, 4=ru, 5=fr, 6=et, 7=ua, 8=it,
|
||||||
|
9=be, 10=sp, 11=ca
|
||||||
Remarks:
|
Remarks:
|
||||||
* System language is global system variable and is not used
|
* System language is global system variable and is not used
|
||||||
by the kernel itself, however application @taskbar draws the
|
by the kernel itself, however application @taskbar draws the
|
||||||
@ -1818,7 +1822,7 @@ Remarks:
|
|||||||
=================== Function 37 - work with mouse. ===================
|
=================== Function 37 - work with mouse. ===================
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
||||||
---------- Subfunction 0 - screen coordinates of the mouse -----------
|
-------- Subfunction 0 - get screen coordinates of the mouse ---------
|
||||||
Parameters:
|
Parameters:
|
||||||
* eax = 37 - function number
|
* eax = 37 - function number
|
||||||
* ebx = 0 - subfunction number
|
* ebx = 0 - subfunction number
|
||||||
@ -1841,14 +1845,14 @@ Remarks:
|
|||||||
contains relative y-coordinate, and to the high word
|
contains relative y-coordinate, and to the high word
|
||||||
1 should be added.
|
1 should be added.
|
||||||
|
|
||||||
------------- Subfunction 2 - states of the mouse buttons ------------
|
----------- Subfunction 2 - get states of the mouse buttons ----------
|
||||||
Parameters:
|
Parameters:
|
||||||
* eax = 37 - function number
|
* eax = 37 - function number
|
||||||
* ebx = 2 - subfunction number
|
* ebx = 2 - subfunction number
|
||||||
Returned value:
|
Returned value:
|
||||||
* eax = bits 0-4 equal to subfunction 3
|
* eax = bits 0-4 equal to subfunction 3
|
||||||
|
|
||||||
------- Subfunction 3 - states and events of the mouse buttons -------
|
----- Subfunction 3 - get states and events of the mouse buttons -----
|
||||||
Parameters:
|
Parameters:
|
||||||
* eax = 37 - function number
|
* eax = 37 - function number
|
||||||
* ebx = 3 - subfunction number
|
* ebx = 3 - subfunction number
|
||||||
@ -1941,7 +1945,8 @@ Parameters:
|
|||||||
* eax = 37 - function number
|
* eax = 37 - function number
|
||||||
* ebx = 8 - subfunction number
|
* ebx = 8 - subfunction number
|
||||||
* ecx = pointer to the cursor file path string
|
* ecx = pointer to the cursor file path string
|
||||||
* edx = string encoding, details can be found in function 80 description.
|
* edx = string encoding, details can be found in function 80
|
||||||
|
description.
|
||||||
Returned value:
|
Returned value:
|
||||||
* eax = cursor handle, 0 - failed
|
* eax = cursor handle, 0 - failed
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user