mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
55ce340f7e
commit
fb7f90626b
@ -175,8 +175,8 @@ OSStatus osxGraphicsWindow::event_handler(EventHandlerCallRef myHandler, EventRe
|
|||||||
UInt32 the_class = GetEventClass(event);
|
UInt32 the_class = GetEventClass(event);
|
||||||
UInt32 kind = GetEventKind(event);
|
UInt32 kind = GetEventKind(event);
|
||||||
|
|
||||||
WindowRef window = _osx_window; // NULL;
|
WindowRef window = NULL;
|
||||||
// GetEventParameter(event, kEventParamDirectObject, typeWindowRef, NULL, sizeof(WindowRef), NULL, &window);
|
GetEventParameter(event, kEventParamDirectObject, typeWindowRef, NULL, sizeof(WindowRef), NULL, &window);
|
||||||
|
|
||||||
if (osxdisplay_cat.is_spam())
|
if (osxdisplay_cat.is_spam())
|
||||||
{
|
{
|
||||||
@ -186,7 +186,6 @@ OSStatus osxGraphicsWindow::event_handler(EventHandlerCallRef myHandler, EventRe
|
|||||||
switch (the_class)
|
switch (the_class)
|
||||||
{
|
{
|
||||||
case kEventClassMouse:
|
case kEventClassMouse:
|
||||||
// osxdisplay_cat.info() << "Mouse movement handled by Window handler\n";
|
|
||||||
result = handleWindowMouseEvents (myHandler, event);
|
result = handleWindowMouseEvents (myHandler, event);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -291,21 +290,17 @@ void osxGraphicsWindow::SystemCloseWindow()
|
|||||||
|
|
||||||
static pascal OSStatus windowEvtHndlr(EventHandlerCallRef myHandler, EventRef event, void *userData)
|
static pascal OSStatus windowEvtHndlr(EventHandlerCallRef myHandler, EventRef event, void *userData)
|
||||||
{
|
{
|
||||||
osxGraphicsWindow* osx_win = (osxGraphicsWindow *)userData;
|
#pragma unused (userData)
|
||||||
|
|
||||||
|
WindowRef window = NULL;
|
||||||
|
GetEventParameter(event, kEventParamDirectObject, typeWindowRef, NULL, sizeof(WindowRef), NULL, &window);
|
||||||
|
|
||||||
|
if (window != NULL)
|
||||||
|
{
|
||||||
|
osxGraphicsWindow *osx_win = osxGraphicsWindow::GetCurrentOSxWindow(window);
|
||||||
if (osx_win != (osxGraphicsWindow *)NULL)
|
if (osx_win != (osxGraphicsWindow *)NULL)
|
||||||
return osx_win->event_handler(myHandler, event);
|
return osx_win->event_handler(myHandler, event);
|
||||||
|
}
|
||||||
//#pragma unused (userData)
|
|
||||||
|
|
||||||
// WindowRef window = NULL;
|
|
||||||
// GetEventParameter(event, kEventParamDirectObject, typeWindowRef, NULL, sizeof(WindowRef), NULL, &window);
|
|
||||||
|
|
||||||
// if (window != NULL)
|
|
||||||
// {
|
|
||||||
// osxGraphicsWindow *osx_win = osxGraphicsWindow::GetCurrentOSxWindow(window);
|
|
||||||
// if (osx_win != (osxGraphicsWindow *)NULL)
|
|
||||||
// return osx_win->event_handler(myHandler, event);
|
|
||||||
// }
|
|
||||||
|
|
||||||
return eventNotHandledErr;
|
return eventNotHandledErr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user