Autodetect joystick/pad whatever

By Daemos

Paragon (2044)

Daemos's picture

17-11-2014, 08:20

How can I autodetect a joystick device if possible?
Any tricks to do that?

Login or register to post comments

By Manuel

Ascended (19273)

Manuel's picture

17-11-2014, 10:53

There must be, as the joystick test FRS expanded also detects those devices Smile

By Manuel

Ascended (19273)

Manuel's picture

17-11-2014, 12:48

By Daemos

Paragon (2044)

Daemos's picture

17-11-2014, 14:27

Smile indeed. unfortunatly no source is included but the first question is awnsered. Thank you
No to find out how.

My idea is to read the joystick port and see if a plugged in joystick provides a different byte than a open port.

By Manuel

Ascended (19273)

Manuel's picture

17-11-2014, 14:36

As far as I know, joytest works fine in openMSX, so you can probably use openMSX to try this out to get started.

By Daemos

Paragon (2044)

Daemos's picture

17-11-2014, 14:46

Smile thanks for the hint I will try it out