GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Jul 30, 2014 2:58 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Key-press-event delay
PostPosted: Sat Dec 08, 2012 10:52 am 
Offline
Familiar Face

Joined: Thu Aug 23, 2012 4:50 am
Posts: 11
Hi,

Is there a way to by pass the delay you get when checking for key-press-events? For example when I hold the 'A' key down, the callback displays a message, there's a brief pause and then the message is repeated as a stream. I'd like the stream of text without the pause after the first initial callback.

I know this is standard feature of the OS, but I need to find a way of stopping it from happening. I've used gtk_key_snooper too, but the delay still occurs. Any ideas?

I'm using Gtk+ 2.4 on Windows7

Thanks
6


Top
 Profile  
 
 Post subject: Re: Key-press-event delay
PostPosted: Sun Dec 09, 2012 8:54 pm 
Offline
Familiar Face

Joined: Thu Aug 23, 2012 4:50 am
Posts: 11
Hi,

Actually I figured a way around it, so it's ok now. Rather than call an Update() function in the callback (which causes the pause) I have the Update run in the Main loop. The callback just updates stored values when the keys are pressed which the Update function then uses to perform an action. This removes the delay after the first key press is detected.

6


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group