Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   HID Joystick classes - Vibrating Joysticks (http://www.chiefdelphi.com/forums/showthread.php?t=81258)

enrique 27-01-2010 14:46

HID Joystick classes - Vibrating Joysticks
 
Does any one know of a way to access the windows DirectInput Interfaces with the winriver/frc available headers and classes?
I didn't see anything in the hid or joystick headers.
The end result desired is to call the DirectInputEffectDriver interface to cause a vibrating joystick to vibrate. Or if there is any other way you know of vibrating a joystick programatically please enlighten me.

nathanww 27-01-2010 15:50

Re: HID Joystick classes - Vibrating Joysticks
 
The Cypress boards have digital outputs. So you could disconnect the shaker device from the joystick's controller and hook it directly to a digital output. Just check to make sure that the digital output can handle the load from the shaker.

enrique 27-01-2010 16:09

Re: HID Joystick classes - Vibrating Joysticks
 
Yea I had something like that in mind as plan B. :D

slavik262 27-01-2010 17:22

Re: HID Joystick classes - Vibrating Joysticks
 
Since you can add data to the Dashboard data coming from the robot, you could add some values for vibration into your user data of the dashboard packets. You could then make a program that peeks at incoming packets and interfaces with DirectInput to give you the force feedback you want.

enrique 28-01-2010 18:08

Re: HID Joystick classes - Vibrating Joysticks
 
Just read your post slavik262.
That is what I want to do. Receive input data and use direct input.
I forgot that the real place to do this would be the PC dashboard. It receives the sensor data and runs on windows, not on the controller. All I have to do is make an active x control with the direct input API and call it from the pc dashboard.
Problem solved!


All times are GMT -5. The time now is 12:14.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi