mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-20 07:54:46 +00:00
Avoid monitoring special keys when the window is not in focus
This commit is contained in:
parent
11e40594ef
commit
abc6148253
1 changed files with 25 additions and 19 deletions
|
@ -27544,6 +27544,12 @@ void GLUT_KEYBOARDUP_FUNC(unsigned char key, int x, int y) { GLUT_key_ascii(key,
|
||||||
|
|
||||||
void GLUT_key_special(int32 key, int32 down) {
|
void GLUT_key_special(int32 key, int32 down) {
|
||||||
#ifdef QB64_GLUT
|
#ifdef QB64_GLUT
|
||||||
|
|
||||||
|
# ifdef QB64_WINDOWS
|
||||||
|
if (!func__hasfocus())
|
||||||
|
return;
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifndef CORE_FREEGLUT
|
# ifndef CORE_FREEGLUT
|
||||||
/*
|
/*
|
||||||
static int32 mod;
|
static int32 mod;
|
||||||
|
|
Loading…
Reference in a new issue