Strange Key Input Behavior
Strange Key Input Behavior
- Subject: Strange Key Input Behavior
- From: Kodex <email@hidden>
- Date: Thu, 11 Aug 2005 14:30:50 -0700 (PDT)
I have a OpenGL App that uses
aglSetFullScreen(gAGLContext, width, height, depth,
0); to setup its full screen context. When the user is
in window mode everything works fine. The problem
occurs when the full screen context is created.
Once in full screem it appears as though the OS blocks
all keys pressed, I recieve a beep when a key is
pressed and its not handled by carbon events, cocoa
input, or getKeys. Although other events are handled
fine in fullscreen, ie: mouse events.Anyone have an
idea why it might be denying keyboard events? I have
my code available if anyone wants it.
void InitMyEventHandler(void)
{
EventTypeSpec events[9] = {kEventClassCommand,
kEventCommandProcess, // command events
kEventClassKeyboard, kEventRawKeyDown, // key
down events
kEventClassKeyboard, kEventRawKeyUp, // key
up events
kEventClassKeyboard,
kEventRawKeyModifiersChanged, // modifiers changed
event
kEventClassMouse, kEventMouseMoved,
kEventClassMouse, kEventMouseDragged,
kEventClassMouse, kEventMouseUp,
kEventClassMouse, kEventMouseDown,
kEventClassMouse, kEventMouseWheelMoved};
gMyEventHandlerUPP =
NewEventHandlerUPP(MyEventHandler);
InstallEventHandler(GetApplicationEventTarget(),
gMyEventHandlerUPP, 9, events, nil,
&gMyEventHandlerRef);
}
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden