mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
Change in mouse set locaion logic to pivote window focus not current location
This commit is contained in:
parent
f71f5731e4
commit
7986a1b15a
@ -140,8 +140,9 @@ move_pointer(int device, int x, int y) {
|
|||||||
// Note: this is not thread-safe; it should be called only from App.
|
// Note: this is not thread-safe; it should be called only from App.
|
||||||
// Probably not an issue.
|
// Probably not an issue.
|
||||||
nassertr(device == 0, false);
|
nassertr(device == 0, false);
|
||||||
if (!_properties.get_foreground() ||
|
if (!_properties.get_foreground() )
|
||||||
!_input_devices[0].get_pointer().get_in_window()) {
|
// !_input_devices[0].get_pointer().get_in_window())
|
||||||
|
{
|
||||||
// If the window doesn't have input focus, or the mouse isn't
|
// If the window doesn't have input focus, or the mouse isn't
|
||||||
// currently within the window, forget it.
|
// currently within the window, forget it.
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user