MCPcopy Index your code
hub / github.com/NetHack/NetHack / readchar_poskey

Function readchar_poskey

src/cmd.c:5287–5295  ·  view source on GitHub ↗

used by getpos() to accept mouse input as well as keyboard input */

Source from the content-addressed store, hash-verified

5285
5286/* used by getpos() to accept mouse input as well as keyboard input */
5287char
5288readchar_poskey(coordxy *x, coordxy *y, int *mod)
5289{
5290 char ch;
5291
5292 program_state.input_state = getposInp;
5293 ch = readchar_core(x, y, mod);
5294 return ch;
5295}
5296
5297/* '_' command, #travel, via keyboard rather than mouse click */
5298staticfn int

Callers 1

getposFunction · 0.85

Calls 1

readchar_coreFunction · 0.85

Tested by

no test coverage detected