Skip to content

Commit eef9a34

Browse files
authored
Flush the mouse state after toggling between Use_mouse_to_fly in scripting/api/libs/controls.cpp::MouseControlStatus (#4426)
See the discussion in issue #4173 for details.
1 parent 4a9c656 commit eef9a34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

code/scripting/api/libs/controls.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ ADE_VIRTVAR(MouseControlStatus, l_Mouse, "boolean", "Gets and sets the retail mo
334334
{
335335
Use_mouse_to_fly = false;
336336
}
337+
338+
mouse_flush();
337339
}
338340

339341
if (Use_mouse_to_fly)

0 commit comments

Comments
 (0)