MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / HandleEvent

Function HandleEvent

Engine/lib/sdl/src/hidapi/testgui/mac_support.cpp:66–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66static void HandleEvent(EventRecord *event)
67{
68 //printf("What: %d message %x\n", event->what, event->message);
69 if (event->what == osEvt) {
70 if (((event->message >> 24) & 0xff) == suspendResumeMessage) {
71 if (event->message & resumeFlag) {
72 g_main_window->show();
73 }
74 }
75 }
76
77#if 0
78 switch (event->what)
79 {
80 case mouseDown:
81 //HandleMouseDown(event);
82 break;
83 case keyDown:
84 case autoKey:
85 //HandleKeyPress(event);
86 break;
87 case kHighLevelEvent:
88 puts("Calling ProcessAppleEvent\n");
89 AEProcessAppleEvent(event);
90 break;
91 }
92#endif
93}
94
95void
96init_apple_message_system()

Callers 1

check_apple_eventsFunction · 0.85

Calls 1

showMethod · 0.45

Tested by

no test coverage detected