mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix for ancient bug that causes non-gui keyboard input to be discarded if the mouse pointer is outside the client area of the window
This commit is contained in:
parent
2e531a4650
commit
fe94fedc10
@ -1441,8 +1441,8 @@ do_transmit_data(DataGraphTraverser *trav, const DataNodeTransmit &input,
|
|||||||
// within the window. This is considered not having a mouse.
|
// within the window. This is considered not having a mouse.
|
||||||
set_no_mouse();
|
set_no_mouse();
|
||||||
|
|
||||||
// This also means we should suppress button events below us.
|
// This also means we should suppress mouse button events below us.
|
||||||
_internal_suppress |= MouseWatcherRegion::SF_any_button;
|
_internal_suppress |= MouseWatcherRegion::SF_mouse_button;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// The mouse is within the display region; rescale it.
|
// The mouse is within the display region; rescale it.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user