Revert "Revert "Mouse support""

This reverts commit 796cdc08f57a80f132da5883a7222c0476a4d0ff.