Talk:How do I use a USB gamepad or joystick with the OHRRPGCE?

From OHRRPGCE-Wiki
Jump to navigation Jump to search

Well, it seems the main page is down at this moment, so I put an older mirror of it's webpage on here. There seems to be another page that has the Windows version pre-compiled.

Mike C. (Note: The following rambling only applies to the windows version)

Hmm, this is odd. I thought that FreeBasic's joystick commands would use the built in API for joysticks (or joystick config files on Linux, or...), which would give a device-independant view of the joystick. I.e., it shouldn't matter whether you use a USB or Joystick port joystick/gamepad.

5 minutes later

Oh. That explains a lot:

function io_readjoy(joybuf() as integer, byval joynum as integer) as integer
	'don't know
	io_readjoy = 0
end function

Yeah. No joysticks would work, now. I'll fix that up with GetJoystick().