[SOLVED] Remapping software when using controller on PC

Dec 1, 2021
hey im on PC, playing warzone with ps4 controller everthing works using DS4windows
i bought a USB foot pedal and i cant seem to map it to my controller with the provided software as the footpedal only maps to keyboard buttons.
is there a way i can use ds4windows? or have another program running that can remap so when I press a key on my keyboard(or my foot pedal) lets say the letter P it would act as triangle for example or X as a controller button press? thanks guys appreciate the input been stumped for awhile now