Added support for mouse input