I want to make a project using micro-controllers to translate between different protocols of controllers, but one of the things I need to make is to emulate a controller using my computer. For example, emulate a ps4 controller and send similar Bluetooth signal or usb signal. How can I achieve that. Is the protocol reversed, can a replay attack be used. Is there a library that can do this if not how can I do this myself.
I tried searching for emulating bluetooth signal using computer but all results where about connecting a real controller to pc which is not what I am asking for.