Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange Key Input Behavior



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.