I needed to understand how QS works as a PS4/ Xbox gamepad.
It's very simple if you see it with your own eyes.
I used 360Controller emulator for mac.
This is a project on github: https://github.com/360Controller/360Controller/releases
Version 0.16.5 works for macOS 10.12.6 for me.
SteamyBiscuit in his video uses TocaEdit emulator for Windows: https://www.x360ce.com
Perhaps it will be useful to someone.