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

Function GetKeyboardState

NULLC/translation/std_io_bind.cpp:108–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void GetKeyboardState(NULLCArray<char > state, void* unused)
109{
110#if !defined(_WIN32)
111 nullcThrowError("GetKeyboardState: supported only under Windows");
112#else
113 if(state.size < 256)
114 nullcThrowError("GetKeyboardState requires array with 256 or more elements");
115 ::GetKeyboardState((unsigned char*)state.ptr);
116#endif
117}
118
119void GetMouseState(int * x, int * y, void* unused)
120{

Callers

nothing calls this directly

Calls 1

nullcThrowErrorFunction · 0.70

Tested by

no test coverage detected