SysFn2:GetKey
Posted: Tue Nov 15, 2016 4:45 pm
Как насчёт добавить в эту функцию поддержку Unicode?
У нас там есть ещё свободные биты для этого.
То есть, можно добавить режим UNICODE. И возвращать eax = [Byte:Scan][Word:Key][Byte:0]
У нас там есть ещё свободные биты для этого.
Code: Select all
Returned value:
* if the buffer is empty, function returns eax=1
* if the buffer is not empty, function returns al=0,
ah=code of the pressed key,
bits 16-23 = contain scancode for pressed key in ASCII mode,
in the scancodes mode this bits cleared.
bits 23-31 = zero
* if there is "hotkey", function returns al=2,
ah=scancode of the pressed key (0 for control keys),
high word of eax contains a status of control keys at the moment
of pressing a hotkey