PORTS Forum

Ports and Interfaces => USB => Topic started by: yindengxie on August 20, 2020, 12:18:40 pm

Title: USB_HID API access Joystick is denied!
Post by: yindengxie on August 20, 2020, 12:18:40 pm
Hello everyone!

  USB_HID API access Joystick is denied! We can not read the Joystick data from Host API.
What can we do for that ? Please you give us help and support.
THANKS!
Title: Re: USB_HID API access Joystick is denied!
Post by: Jan Axelson on August 20, 2020, 12:23:52 pm
It sounds like the joystick driver has exclusive access.

XInput and DirectInput may be your best options.
Title: Re: USB_HID API access Joystick is denied!
Post by: yindengxie on August 20, 2020, 12:26:24 pm
THANKS Jan!

Yes! I am using DirectX Input to read Joystick USB port data.

        Best Regards!
Title: Re: USB_HID API access Joystick is denied!
Post by: yindengxie on August 20, 2020, 12:34:50 pm
I have one very old DirectInput example to read Joystick data,  this example program
is Grahpic Use Interface. But I want to have the console application to read the Joystick data. 
Who can help me to provide a complete DirectInput example program for console application?

THANKS for your help and Support!