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

Function Main_Init

outdated/win/gem/wingem1.c:2644–2653  ·  view source on GitHub ↗
(xev, availiable)

Source from the content-addressed store, hash-verified

2642}
2643
2644int
2645Main_Init(xev, availiable)
2646XEVENT *xev;
2647int availiable;
2648{
2649 xev->ev_mb1mask = xev->ev_mb1state = 1;
2650 xev->ev_mb1clicks = xev->ev_mb2clicks = xev->ev_mb2mask =
2651 xev->ev_mb2state = 2;
2652 return ((MU_KEYBD | MU_BUTTON1 | MU_BUTTON2 | MU_MESAG) & availiable);
2653}
2654
2655/*
2656 * return a key, or 0, in which case a mouse button was pressed

Callers 1

mar_nh_poskeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected