xenv: allow reading mouse through callbacks, for SDL project