1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-09-20 05:34:47 +00:00

Avoid monitoring special keys when the window is not in focus

This commit is contained in:
Samuel Gomes 2024-03-30 17:31:41 +05:30
parent 11e40594ef
commit abc6148253

View file

@ -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) {
#ifdef QB64_GLUT
# ifdef QB64_WINDOWS
if (!func__hasfocus())
return;
# endif
# ifndef CORE_FREEGLUT
/*
static int32 mod;