[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] new bits in ev_bkstate?



Pierre Ton-That, 26.02.2013 23:06:13:

Bonsoir,

http://toshyp.atari.org/en/008007.html#evnt_button

ev_bkstate 	On return contains the status of the 'special' keys of the
keyboard when the event occurred:
0x001 	= 	Right [Shift]
0x002 	= 	Left [Shift]
0x004 	= 	[Control]
0x008 	= 	[Alternate]


Some functions could not be called with the Ctrl key and CapsLock
activated. In XaAES, it seems bit 4 of ev_bkstate is set when CapsLock
key is enabled: not yet documented in the TOS.HYP or is this addition
canceled in new updates ? I use XaAES 1.2.1beta. Other new bits are used?

Should be the same bits as returned by Bconin or Kbshift. There is no definition for CapsLock anywhere. But it has not changed recently. Would you suggest to set all other bits 0?.

toshyp says for Kbshift:

Bit	Meaning
0	Right shift key
1	Left shift key
2	Control key
3	ALT key
4	Caps-lock
5	Right mouse button
6	Left mouse button
7	Alt Gr since TOS 4.06 (Milan)

Do all those get returned in ev_kbstate?

--
Helmut Karlowski