Author Topic: USB_HID API access Joystick is denied!  (Read 494 times)

yindengxie

  • Member
  • ***
  • Posts: 28
USB_HID API access Joystick is denied!
« 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!

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 2959
    • Lakeview Research
Re: USB_HID API access Joystick is denied!
« Reply #1 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.

yindengxie

  • Member
  • ***
  • Posts: 28
Re: USB_HID API access Joystick is denied!
« Reply #2 on: August 20, 2020, 12:26:24 pm »
THANKS Jan!

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

        Best Regards!

yindengxie

  • Member
  • ***
  • Posts: 28
Re: USB_HID API access Joystick is denied!
« Reply #3 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!