Support mouse button and wheel mapping.