| 2159 | */ |
| 2160 | |
| 2161 | static void |
| 2162 | BaseClick(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 | |
| 2183 | static void |
| 2184 | BaseCursor(NhWindow *wind, Point pt) |
no test coverage detected