If I use this function (in Windows) there is a bug. If i hold down my mouse button, move out of the window and release it there, the input class still thinks my left mouse button is pressed! Even if I reenter the window with my mouse, it still thinks the mouse button is pressed! Only if I press the mouse button again it'll no more think that it is pressed.