Subversion Repositories Kolibri OS

Rev

Rev 4588 | Rev 4641 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4588 Rev 4612
Line 147... Line 147...
147
  * eax = 2 - function number
147
  * eax = 2 - function number
148
Returned value:
148
Returned value:
149
  * if the buffer is empty, function returns eax=1
149
  * if the buffer is empty, function returns eax=1
150
  * if the buffer is not empty, function returns al=0,
150
  * if the buffer is not empty, function returns al=0,
151
    ah=code of the pressed key,
151
    ah=code of the pressed key,
152
    bits 16-23 = contain scancode for pressed key,
152
    bits 16-23 = contain scancode for pressed key in ASCII mode,
-
 
153
                 in the scancodes mode this bits cleared.
153
    bits 23-31 = zero
154
    bits 23-31 = zero
154
  * if there is "hotkey", function returns al=2,
155
  * if there is "hotkey", function returns al=2,
155
    ah=scancode of the pressed key (0 for control keys),
156
    ah=scancode of the pressed key (0 for control keys),
156
    high word of eax contains a status of control keys at the moment
157
    high word of eax contains a status of control keys at the moment
157
    of pressing a hotkey
158
    of pressing a hotkey