To reproduce: (0. use windowed mode) 1. hold any mouse button 2. leave the game window The mouse button state should be updated, but isn't until the cursor returns to the window. This can be seen in the visual tests already.