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

Function GetMouseState

NULLC/includes/io.cpp:151–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 }
150
151 void GetMouseState(int* x, int* y)
152 {
153#if !defined(_MSC_VER)
154 nullcThrowError("GetMouseState: supported only under Windows");
155#else
156 POINT pos;
157 GetCursorPos(&pos);
158 *x = pos.x;
159 *y = pos.y;
160#endif
161 }
162
163 bool IsPressed(int key)
164 {

Callers

nothing calls this directly

Calls 1

nullcThrowErrorFunction · 0.50

Tested by

no test coverage detected