Re: Key-release-event

From: Date: Thu, 27 Jan 2005 21:22:11 +0000
Subject: Re: Key-release-event
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5501@lists.php.net to get a copy of this message
I understand :), but I'm trying to build an application which controls some robotics. Since I want the robot to stop moving when I stop pressing a key, I need a key-release-event to do this. In the Control panel I can't turn this 'feature' of. Furthermore, the key-release-event occurs directly after the key-press-event, so it's quite useless. -----Original Message----- From: Christian Weiske [mailto:cweiske@cweiske.de] Sent: donderdag 27 januari 2005 22:17 To: Emiel Mols Cc: php-gtk-general@lists.php.net Subject: Re: [PHP-GTK] Key-release-event Hi Emiel, > When I build an application which binds event handlers to > key-press-event and key-release-event in Windows XP (php-gtk-1.0.0), > the functions are called in the following way (pressing a key once for about 5 seconds): > > Key pressed: 32 > Key released! > Key pressed: 32 > Key released! > > This has to do with some auto-repeat setting I suppose, but I can't > find any way to turn it off. Any suggestions? This is a feature, not a bug. In the windows control center, keyboard applet, has a "repeat rate" setting which controls this. Regards/MfG, Christian Weiske -- XMMS is playing now: The Cardigans - Junk of the hearts

« previous php.gtk.general (#5501) next »