[Qt-interest] [SOLVED] Re: How to Limit Keyboard input rates ?

Aaron Lewis aaron.lewis1989 at gmail.com
Sun May 9 03:57:11 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/09/2010 06:22 AM, Nikos Chantziaras wrote:
> 
> No, this is up to the user to configure in his OS.  The correct way to 
> do it is to ignore key events that are the result of auto repetition. 
>  From then on, you can handle it in whatever way you like.  For 
> game-like applications for example, you simply check key press and key 
> release events, viewing the keys as if they were a gamepad.  When a key 
> pressed, you trigger an action.  If the action is continuous, you stop 
> it again when the key is released.

So nice , i'm just looking for the Term `Auto Repeat' and isAutoRepeat()
in QKeyEvent fits me very well.

Thanks Nikos ;-)


> 
> If you still need auto repeat, then you need to time the actions 
> yourself (like you do now.)
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest


- -- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvmFncACgkQvf41sEptMqCriACeNaPKZl05fDztJVbZZZ3ObQXw
9wwAoK7KOdr42AKNPZfA3Hg1Lz1trV1w
=Hcdz
-----END PGP SIGNATURE-----



More information about the Qt-interest-old mailing list