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

Function BaseClick

outdated/sys/mac/macwin.c:2161–2181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2159 */
2160
2161static void
2162BaseClick(NhWindow *wind, Point pt, UInt32 modifiers)
2163{
2164 pt.h = pt.h / wind->char_width + 1;
2165 pt.v = pt.v / wind->row_height;
2166 clicked_mod = (modifiers & shiftKey) ? CLICK_2 : CLICK_1;
2167
2168 if (strchr(topl_resp, *click_to_cmd(pt.h, pt.v, clicked_mod)))
2169 nhbell();
2170 else {
2171#if 1 //!TARGET_API_MAC_CARBON
2172 if (cursor_locked)
2173 while (WaitMouseUp())
2174 /*SystemTask()*/;
2175#endif
2176
2177 gClickedToMove = TRUE;
2178 clicked_pos = pt;
2179 }
2180 return;
2181}
2182
2183static void
2184BaseCursor(NhWindow *wind, Point pt)

Callers 2

BaseEventFunction · 0.85
macClickTermFunction · 0.85

Calls 1

click_to_cmdFunction · 0.85

Tested by

no test coverage detected