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

Function message_handler

outdated/win/gem/wingem1.c:316–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316void
317message_handler(int x, int y)
318{
319 switch (objc_find(zz_oblist[MSGWIN], ROOT, MAX_DEPTH, x, y)) {
320 case UPMSG:
321 if (msg_pos > msg_vis - 1) {
322 msg_pos--;
323 Gem_nhwindow[WIN_MESSAGE].gw_dirty = TRUE;
324 mar_display_nhwindow(WIN_MESSAGE);
325 }
326 Event_Timer(50, 0, TRUE);
327 break;
328 case DNMSG:
329 if (msg_pos < msg_max) {
330 msg_pos++;
331 Gem_nhwindow[WIN_MESSAGE].gw_dirty = TRUE;
332 mar_display_nhwindow(WIN_MESSAGE);
333 }
334 Event_Timer(50, 0, TRUE);
335 break;
336 case GRABMSGWIN:
337 default:
338 move_win(Gem_nhwindow[WIN_MESSAGE].gw_window);
339 break;
340 case -1:
341 break;
342 }
343}
344
345int
346mar_ob_mapcenter(OBJECT *p_obj)

Callers 1

mar_nh_poskeyFunction · 0.85

Calls 2

mar_display_nhwindowFunction · 0.85
move_winFunction · 0.85

Tested by

no test coverage detected