Use the same code as touchscreen events to scroll with the mouse wheel.

It seems to work fine in PPSSPP's sys info screen, without the jittering experienced in https://github.com/hrydgard/ppsspp/issues/4117.