MCPcopy Create free account
hub / github.com/WheretIB/nullc / GetMouseState

Function GetMouseState

NULLC/translation/std_io_bind.cpp:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void GetMouseState(int * x, int * y, void* unused)
120{
121#if !defined(_WIN32)
122 nullcThrowError("GetMouseState: supported only under Windows");
123#else
124 POINT pos;
125 GetCursorPos(&pos);
126 *x = pos.x;
127 *y = pos.y;
128#endif
129}
130

Callers

nothing calls this directly

Calls 1

nullcThrowErrorFunction · 0.70

Tested by

no test coverage detected