[Kde-games-devel] keyboard delay on keyPressEvent
Jan Bernatik
bernatik at kn.vutbr.cz
Wed Feb 25 20:19:07 CET 2004
Jan Bernatik wrote:
> Hi
> I experience a delay when I hold a key. I get first keypress
> immediately, then like 1/2 sec delay, and then AutoRepeat events.
> I didn't find in keyPressEvent docs any information what cause this
> delay. Can anybody push me in the good direction ? I searched archives
> on trolltech, but there are just AutoRepeat ignoring threads and nothing
> about this delay.
>
> Thanks a lot.
> Jan
hmm I'm sorry bothering all of you second time with this, but maybe I
wasn't clear before, and after whole day trying to beat this, I'm still
stuck with it. What I need to know is, how do you override
"X -ar1 milisecons" setting of xserver (which cause the behavior I was
writing about). When I start xserver with -ar1 1 argument, delay is not
noticable. I was studying kasteroids game source (where it works well)
but I couldn't figure out what exactly changes the behaviour of keyboard
in processKeyPress(QKeyEvent *event) function. I also tried glut
library, with same effect. I'm newbie to QT & kde. Any pointer in good
direction will be great.
thanks, have a nice day
Jan
--
registered user no. 207163 using Debian
icq: 78209478
home: linuxdesktop.kn.vutbr.cz
More information about the kde-games-devel
mailing list