Archived

This topic is now archived and is closed to further replies.

Bo Mellberg

Dead joystick

Recommended Posts

Bo Mellberg    122
Hi! I have an installed joystick (at least according to my control panel) but the joystick example doesn''t reflect the changes of the stick in Joystick[0] or Joystick[1]. The variable joy_installed is true so the initialization must work. Am I missing something? Thanks, /Bo

Share this post


Link to post
Share on other sites
Bo Mellberg    122
Fixed it. Just rename all occurences of LPDIRECTINPUT and LPDIRECTINPUTDEVICE to LPDIRECTINPUT8 and LPDIRECTINPUTDEVICE8.

Dont forget to change &IID_IDirectInputDevice2 in QueryInterface to &IID_IDirectInputDevice8.

/Bo

Share this post


Link to post
Share on other sites