Carbon events in windowed/full screen mode. Help needed.
Good day, all!
We are porting our Win32 game to OS X. And I have a couple of questions for you Mac gurus! )))
Please tell what strategy for input events handling is commonly used in games. Because I have a little problem. When I process kEventMouseUp/kEventMouseDown in the handler attached to the main window it does not work after aglSetFullscreen (because of display capture I guess), i.e. my handler does not receive this events. And when I attach my events handler to the Application target suddenly buttons of standard alert dialogs do not respond to mouse down, i.e. I can not click OK button of a standard alert with mouse.
Would you please describe what's going on? Thank you.
We are porting our Win32 game to OS X. And I have a couple of questions for you Mac gurus! )))
Please tell what strategy for input events handling is commonly used in games. Because I have a little problem. When I process kEventMouseUp/kEventMouseDown in the handler attached to the main window it does not work after aglSetFullscreen (because of display capture I guess), i.e. my handler does not receive this events. And when I attach my events handler to the Application target suddenly buttons of standard alert dialogs do not respond to mouse down, i.e. I can not click OK button of a standard alert with mouse.
Would you please describe what's going on? Thank you.
The application event handler must pass events it doesn't process to the standard event handler, so you must indicate that this should happen when you want to show dialogs, etc.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| [For David, aarku] Carbon Events | OneSadCookie | 4 | 3,931 |
Mar 5, 2013 10:20 PM Last Post: SethWillits |
|
| Cocoa/OpenGL drawing full-screen problem | ultitech | 5 | 7,046 |
Jan 13, 2011 01:11 PM Last Post: SethWillits |
|
| Full screen mouse events | Mister T | 17 | 7,495 |
Jan 4, 2010 02:55 PM Last Post: MacMan |
|
| Full Screen Event Handling | kodex | 4 | 4,228 |
Jun 27, 2008 08:37 PM Last Post: OneSadCookie |
|
| Full-screen without OpenGL | George Marlin | 2 | 2,623 |
May 11, 2007 01:38 PM Last Post: George Marlin |
|

