Author Topic: How to sniff Joystick data  (Read 5532 times)

RichardW

  • Member
  • ***
  • Posts: 2
How to sniff Joystick data
« on: March 19, 2016, 08:02:55 pm »
Hi everybody,

I am new to the USB programming and bought USB Complete 5th. but did not find an answer for my problem.
I want to read (sniff) the data generated by a joystick and use it to trigger some selfmade effects (feedback for more realistic experience).

The question is: Is it possible to sniff USB data and what is a good starting point / catchword  to start from?
Anybody here that can give me a hint?

Thanks


Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: How to sniff Joystick data
« Reply #1 on: March 19, 2016, 08:56:37 pm »

RichardW

  • Member
  • ***
  • Posts: 2
Re: How to sniff Joystick data
« Reply #2 on: March 20, 2016, 08:20:40 am »
Dear Jan,

thank You for fast answer. But may be You got me wrong, I do not want to modify the bahaviour of the joystick.
I want to detect if the firebutton is pressed, with that information I want to trigger a self designed hardware that creates extended light effects outside the game monitor.
I look for a passive listener of the Joysticks USB datastream

Thank You

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: How to sniff Joystick data
« Reply #3 on: March 20, 2016, 10:33:37 am »
These should help in explaining how to monitor joystick input on a Windows system:

https://msdn.microsoft.com/en-us/library/windows/desktop/bb153252%28v=vs.85%29.aspx

http://www.codeproject.com/Tips/850730/Obtaining-Input-Form-a-Joystick-with-Csharp-and-Di

You would then need to write code and provide a hardware interface to control your self-designed hardware.