Fixed the problem with the mouse events not working. It seems like I forgot to update the mouse position informing.