Fix mouse events to work with logical coordinates

Since the window is resizable, some of the old functions expect
coordinates scaled with the window, namely the warp function.