Jump to content
  • Advertisement
Sign in to follow this  

DirectInput API question (usb gamecontroller)

This topic is 4745 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello. I'm hardly trying to fix (maybe patch binary) an old game, namely P.O.D. It exits when used with a USB Joystick. Gameport device works fine. Both controllers have same features (3 axes, cooliehat, 4 buttons) Strange, no real hardware abstraction here :-(. Its based on DirectX 5 for input AFAIK. I isolated a structure which is -run, with gameport joystick, usb device disabled -crashes with only usb joystick -run once, repeat into crash with both devices attached and enabled. the fault is a illegal mem read. My question is, which attributes besides of buttons & axes could differ on DInput 5 for game devices? I dont think DX gives me the bad pointer, maybe its a consequence of "too much button" or something else; but as i stated both devices are euqal except of connection type. i've heard about of other old games behaveing strange with usb devices too... from my not dx5 knowing point of view this seems strange ... thanks very much for ideas and information, Paul

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!