Hi,
I'm now looking at proper implementation of keyboard events and I
found that SalKeyEvent's mnRepeat is not used/implemented in unx/...
but for every keypress (and thus also for repeats), new event is
generated with mnRepeat set to 0.
Should we use the same method for Mac OS X or should we implement
correct setting of this member?
Is it used at all? ;-)
I added some debug output and this is sample repeat press to
illustrate what I mean:
===== Event of type: SALEVENT_KEYINPUT
mnTime = 76181079
mnCode = 512
mnCharCode = 97 (a)
mnRepeat = 0
===== Event of type: SALEVENT_KEYINPUT
mnTime = 76181161
mnCode = 512
mnCharCode = 97 (a)
mnRepeat = 0
===== Event of type: SALEVENT_KEYINPUT
mnTime = 76181242
mnCode = 512
mnCharCode = 97 (a)
mnRepeat = 0
===== Event of type: SALEVENT_KEYUP
mnTime = 76181252
mnCode = 512
mnCharCode = 97 (a)
mnRepeat = 0
All these key events are from key 'a' being pressed for a longer time.
--
Pavel Janík
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]