refactor: MSWindowsDesks::getCursorPos initialize pos to 0,0
This commit is contained in:
parent
38866cf2c1
commit
0cbc922478
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ void MSWindowsDesks::fakeInputEnd()
|
||||||
|
|
||||||
void MSWindowsDesks::getCursorPos(int32_t &x, int32_t &y) const
|
void MSWindowsDesks::getCursorPos(int32_t &x, int32_t &y) const
|
||||||
{
|
{
|
||||||
POINT pos;
|
POINT pos{0, 0};
|
||||||
sendMessage(DESKFLOW_MSG_CURSOR_POS, reinterpret_cast<WPARAM>(&pos), 0);
|
sendMessage(DESKFLOW_MSG_CURSOR_POS, reinterpret_cast<WPARAM>(&pos), 0);
|
||||||
x = pos.x;
|
x = pos.x;
|
||||||
y = pos.y;
|
y = pos.y;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue