MCPcopy Create free account
hub / github.com/NetHack/NetHack / DoOsEvt

Function DoOsEvt

outdated/sys/mac/macwin.c:3181–3206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3179}
3180
3181static void
3182DoOsEvt(EventRecord *theEvent)
3183{
3184 WindowRef win;
3185 short code;
3186
3187 if ((theEvent->message & 0xff000000) == 0xfa000000) {
3188 /* Mouse Moved */
3189
3190 code = FindWindow(theEvent->where, &win);
3191 if (code != inContent) {
3192 Rect r = { -1, -1, 2, 2 };
3193
3194 SetCursor(&qdarrow);
3195 OffsetRect(&r, theEvent->where.h, theEvent->where.v);
3196 RectRgn(gMouseRgn, &r);
3197 } else {
3198#if 1 //!TARGET_API_MAC_CARBON
3199 int kind = GetWindowKind(win) - WIN_BASE_KIND;
3200 if (kind >= 0 && kind <= NHW_TEXT) {
3201 winCursorFuncs[kind](theEvent, win, gMouseRgn);
3202 }
3203#endif
3204 }
3205 }
3206}
3207
3208#endif /* !TARGET_API_MAC_CARBON */
3209

Callers 1

HandleEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected