mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
use hide_or_show_cursor() instead of ShowCursor()
This commit is contained in:
parent
3888c1a087
commit
6c7a75a101
@ -740,7 +740,7 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
||||
if(!_properties.get_cursor_hidden()) {
|
||||
if(!_bCursor_in_WindowClientArea) {
|
||||
// SetCursor(_pParentWindowGroup->_hMouseCursor);
|
||||
ShowCursor(true);
|
||||
hide_or_show_cursor(false);
|
||||
_bCursor_in_WindowClientArea=true;
|
||||
}
|
||||
}
|
||||
@ -749,7 +749,7 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
||||
|
||||
case WM_NCMOUSELEAVE: {
|
||||
if(!_properties.get_cursor_hidden()) {
|
||||
ShowCursor(false);
|
||||
hide_or_show_cursor(true);
|
||||
// SetCursor(NULL);
|
||||
_bCursor_in_WindowClientArea=false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user