Raw key even handler hogging the keyboard input

Member
Posts: 345
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: 345
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: 345
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 Input - C++ OpenGL EugeneSong2000 2 5,697 Apr 13, 2009 01:14 PM
Last Post: EugeneSong2000