Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 9821 → Rev 9822

/kernel/trunk/data32.inc
201,13 → 201,13
 
 
align 4
keyboard dd 1
keyboard dd SYSLANG
 
if lang eq en
SYSLANG = 1
else if lang eq fi
SYSLANG = 2
else if lang eq de
else if lang eq ge
SYSLANG = 3
else if lang eq ru
SYSLANG = 4
215,12 → 215,16
SYSLANG = 5
else if lang eq et
SYSLANG = 6
else if lang eq sp
else if lang eq ua
SYSLANG = 7
else if lang eq it
SYSLANG = 8
else if lang eq be
SYSLANG = 9
else if lang eq sp
SYSLANG = 10
else if lang eq ca
SYSLANG = 9
SYSLANG = 11
else
display 'unsupported language specified',13,10
end if
/kernel/trunk/docs/sysfuncs.txt
146,7 → 146,7
which can be set by subfunction 2 of function 21
and get by subfunction 2 of function 26.
* 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
defined by this thread by subfunction 4 of function 66.
 
1329,10 → 1329,11
* edx = pointer to layout - table of length 128 bytes
Or:
* 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:
* eax = 0 - success
* eax = 1 - incorrect parameter
* eax = -1 - incorrect parameter
Remarks:
* If Alt is pressed, the layout with Alt is used;
if Alt is not pressed, but Shift is pressed,
1356,7 → 1357,8
Parameters:
* eax = 21 - function 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:
* eax = 0
Remarks:
1571,7 → 1573,8
* ebx = 2 - subfunction number
* ecx = 9
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:
* If Alt is pressed, the layout with Alt is used;
if Alt is not pressed, but Shift is pressed,
1596,7 → 1599,8
* eax = 26 - function number
* ebx = 5 - subfunction number
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:
* System language is global system variable and is not used
by the kernel itself, however application @taskbar draws the
1818,7 → 1822,7
=================== Function 37 - work with mouse. ===================
======================================================================
 
---------- Subfunction 0 - screen coordinates of the mouse -----------
-------- Subfunction 0 - get screen coordinates of the mouse ---------
Parameters:
* eax = 37 - function number
* ebx = 0 - subfunction number
1841,7 → 1845,7
contains relative y-coordinate, and to the high word
1 should be added.
 
------------- Subfunction 2 - states of the mouse buttons ------------
----------- Subfunction 2 - get states of the mouse buttons ----------
Parameters:
* eax = 37 - function number
* ebx = 2 - subfunction number
1848,7 → 1852,7
Returned value:
* 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:
* eax = 37 - function number
* ebx = 3 - subfunction number
1941,7 → 1945,8
* eax = 37 - function number
* ebx = 8 - subfunction number
* 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:
* eax = cursor handle, 0 - failed