Make mouse emulation work