I've managed to map all buttons and triggers from joycons using joycon-python to an emulated Xbox 360 controller using vgamepad. However, I cannot figure out how to map the joysticks. I've tried tons of different ways. In the worst cases I get no output at all, while in the best cases the emulated output goes strictly and strongly into one direction, which I can't noticeably influence by moving the sticks.
I'm currently working on a Python script using the vgamepad library to simulate button presses on a virtual gamepad. According to the documentation, I should use gamepad.press_button(vg.XUSB_BUTTON.XUSB_GAMEPAD_A) to press a specific button.
I expected this to simulate a button press, but nothing happened. Am I missing something? Is there a specific reason why using an integer directly didn't produce an error but also didn't result in the expected behavior?
According to their documentation only the specified constants should be used for the press_button() function. I don't think it is intended for use with integers. Here is the link for the file containing the constants.
4a15465005