Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/diasurgical/devilution
/ position_for_mouse
Function
position_for_mouse
SourceX/miniwin/misc_msg.cpp:247–250 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
245
namespace {
246
247
LPARAM position_for_mouse(short x, short y)
248
{
249
return (((uint16_t)(y & 0xFFFF)) << 16) | (uint16_t)(x & 0xFFFF);
250
}
251
252
WPARAM keystate_for_mouse(WPARAM ret)
253
{
Callers
1
PeekMessageA
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected