heretic, hexen: Fix mouse (and joystick) weapon cycling.

Implement this the same way it is implemented for doom and strife.