Added glfwPostEmptyEvent.

This commit is contained in:
Camilla Berglund
2014-02-10 18:16:58 +01:00
parent 9309f75704
commit 1ccc23268c
8 changed files with 84 additions and 0 deletions
+14
View File
@@ -1147,6 +1147,20 @@ void _glfwPlatformWaitEvents(void)
_glfwPlatformPollEvents();
}
void _glfwPlatformPostEmptyEvent(void)
{
NSEvent* event = [NSEvent otherEventWithType:NSApplicationDefined
location:NSMakePoint(0, 0)
modifierFlags:0
timestamp:0
windowNumber:0
context:nil
subtype:0
data1:0
data2:0];
[NSApp postEvent:event atStart:YES];
}
void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y)
{
setModeCursor(window);