mirror of
https://github.com/glfw/glfw.git
synced 2026-09-19 07:05:49 +00:00
Removed auto-polling.
This commit is contained in:
@@ -197,25 +197,6 @@ static void disableKeyRepeat(void)
|
||||
}
|
||||
|
||||
|
||||
//========================================================================
|
||||
// Enable automatic event polling
|
||||
//========================================================================
|
||||
|
||||
static void enableAutoPollEvents(void)
|
||||
{
|
||||
_glfwWin.autoPollEvents = 1;
|
||||
}
|
||||
|
||||
//========================================================================
|
||||
// Disable automatic event polling
|
||||
//========================================================================
|
||||
|
||||
static void disableAutoPollEvents(void)
|
||||
{
|
||||
_glfwWin.autoPollEvents = 0;
|
||||
}
|
||||
|
||||
|
||||
//************************************************************************
|
||||
//**** GLFW user functions ****
|
||||
//************************************************************************
|
||||
@@ -246,9 +227,6 @@ GLFWAPI void glfwEnable(int token)
|
||||
case GLFW_KEY_REPEAT:
|
||||
enableKeyRepeat();
|
||||
break;
|
||||
case GLFW_AUTO_POLL_EVENTS:
|
||||
enableAutoPollEvents();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -281,9 +259,6 @@ GLFWAPI void glfwDisable(int token)
|
||||
case GLFW_KEY_REPEAT:
|
||||
disableKeyRepeat();
|
||||
break;
|
||||
case GLFW_AUTO_POLL_EVENTS:
|
||||
disableAutoPollEvents();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user