Re: Key-release-event

From: Date: Thu, 27 Jan 2005 21:31:21 +0000
Subject: Re: Key-release-event
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5502@lists.php.net to get a copy of this message
Hi Emiel,
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.
You could set a variable to "false", set a timeout (500ms?) when getting a key-release-event, and if a variable hasn't been set to true due to a key-press-event, you stop. Regards/MfG, Christian Weiske -- XMMS is playing now: Evanescence - Imaginary

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.general (#5502) next »