• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Strange Key Input Behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Trivial Bindings question
  • Next by Date: Re: Distributed Objects between cats
  • Previous by thread: To-one relationship in NSOutlineView using bindings
  • Next by thread: NSBezierPath stroke gives weird AA result.
  • Index(es):
    • Date
    • Thread