only lock cursor in borderless if game window is the foreground window
This commit is contained in:
parent
c6701a8cd6
commit
1b791fb2cb
7 changed files with 27 additions and 24 deletions
|
@ -5,6 +5,7 @@ void mouse_lock();
|
|||
void mouse_unlock();
|
||||
LRESULT CALLBACK mouse_hook_proc(int Code, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
extern BOOL g_mouse_locked;
|
||||
extern HHOOK g_mouse_hook;
|
||||
extern HOOKPROC g_mouse_proc;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue