fs-uae
fs-uae copied to clipboard
Some joysticks have newline as part of the name - cannot handle
Example:
# FS-UAE Device Helper 3.1.66
# Keyboards:
# Keyboards path: /Users/xxx/FS-UAE/Data/Devs/Keyboards
K: Keyboard
# Mice:
M: Mouse
# Support for multiple mice not enabled
# Joysticks:
# SDL_Init(SDL_INIT_JOYSTICK)
# SDL_NumJoysticks(): 1
J: OBINS
AnnePro2
Buttons: 16 Hats: 0 Axes: 5 Balls: 0 GUID: 03000000d904000093a2000000010000
SDLName: "OBINS
AnnePro2"
# End
This not only affects joysticks but Keyboards too!
0.661 b'# FS-UAE Device Helper 3.1.66\r\n# Keyboards:\r\n# Keyboards path: C:/Users/razer/Documents/FS-UAE/Data\\Devs\\Keyboards\r\nK: Keyboard\r\n# Mice:\r\nM: Mouse\r\nM: Mouse: HID-compliant mouse\r\nM: Mouse: HID-compliant mouse\r\n# Joysticks:\r\n# SDL_Init(SDL_INIT_JOYSTICK)\r\n# SDL_NumJoysticks(): 2\r\nJ: OBINS\r\nAnnePro2\r\n Buttons: 16 Hats: 0 Axes: 5 Balls: 0 GUID: 03000000d904000093a2000000000000\r\n SDLName: "OBINS\r\nAnnePro2"\r\nJ: OBINS\r\nAnnePro2\r\n Buttons: 8 Hats: 0 Axes: 0 Balls: 0 GUID: 03000000d904000093a2000000000000\r\n SDLName: "OBINS\r\nAnnePro2"\r\n# End\r\n'
Somehow the keyboard is identified as a joystick due to the CR/LN in the SDL name, and since the parameters are split, it ends up giving the error of the missing arguments.