Raw key even handler hogging the keyboard input

Member
Posts: 353
Joined: 2002.04
Post: #1
In my game I install a window event handler for raw key events for the key up/down input in the game.

That all works fine however I have just put in a edit text box as part of the editing tools and it seems that the raw key event handler interferes with it.

What I mean by this is that when I try to type in the edit text box I need to hold down a key until it repeats to get any response.

If I remove the raw key handler the edit text box response is fine.

What might be the cause of this?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
are you returning eventNotHandledErr from your raw handler?
Quote this message in a reply
Member
Posts: 353
Joined: 2002.04
Post: #3
I'm returning noErr, should that be eventNotHandledErr?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #4
If you return noErr, no further event handlers will be called.

I suspect eventNotHandledErr will do what you want.
Quote this message in a reply
Member
Posts: 353
Joined: 2002.04
Post: #5
Sounds a likely suspect, I will try it when I get home tonight.

As always - you rock OneSadCookie!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Keyboard Handling skyhawk 10 6,454 Oct 26, 2010 08:47 AM
Last Post: skyhawk
  Keyboard Input - C++ OpenGL EugeneSong2000 2 5,951 Apr 13, 2009 01:14 PM
Last Post: EugeneSong2000
  keyboard limitations daveh84 8 4,371 Feb 13, 2009 02:48 PM
Last Post: ferum
  Cocoa Keyboard help Iceman 5 4,052 Aug 1, 2005 06:06 PM
Last Post: nabobnick
  Keyboard Question rogue 6 3,656 Jul 10, 2003 06:36 AM
Last Post: rogue