Use  your fight hitbox as a MIDI controller

On Windows you might want to use something like loopMIDI drivers, which would allow you to route local MIDI signals to other application

Also available as a PWA at    https://music.gbraad.nl/gamepad-controller/  and as    Android version  that can use wired and bluetooth controllers.