How can I get cross platform joystick force feedback without relying on anything like directinput or OIS? I'm trying to help out the developers of the engine I'm using, and I need some suggestions on FF. I googled but I couldn't find any results.
Thanks:lol: .
Joystick force feedback in C++
Started by 3DModelerMan, Jan 10 2009 03:39 AM
6 replies to this topic
#1
Posted 10 January 2009 - 03:39 AM
Lightspeed compilers are to slow...we need LUDICROUS SPEED!!!
#2
Posted 10 January 2009 - 10:15 PM
If I recall correctly, OIS is cross-platform is it not? Even if an API is cross-platform it probably uses DirectInput for joystick force-feedback in the implementation, and another programming interface for Linux, etc. Kind of like DX is used on Windows, and OGL on other platforms, when you get down to the implementation.
So if anything, I would recommend you stick with OIS.
So if anything, I would recommend you stick with OIS.
#3
Posted 10 January 2009 - 11:40 PM
The devs of my engine don't want to rely on Direct input. Is there some Direct input source code that you know of I could browse through?.
Lightspeed compilers are to slow...we need LUDICROUS SPEED!!!
#4
Posted 10 January 2009 - 11:47 PM
DirectInput along with the rest of the DirectX libraries is closed source.
Why do the devs care whether the library uses DirectInput in Windows, as long as it works on all the platforms they're interested in?
Why do the devs care whether the library uses DirectInput in Windows, as long as it works on all the platforms they're interested in?
reedbeta.com - developer blog, OpenGL demos, and other projects
#5
Posted 11 January 2009 - 02:52 AM
Yup, as ReedBeta said, they shouldn't really care. At any rate, is there really any other way to do it on Windows other than assembly?
#6
Posted 11 January 2009 - 04:41 AM
There is also the joystick interface in winmm.lib, described here.
reedbeta.com - developer blog, OpenGL demos, and other projects
#7
Posted 11 January 2009 - 04:50 AM
"You'd have to write your own driver for every model of joystick out there."
Pfft, we're game programmers! We can do that in our sleep :whistle:
Personally, I would worry less about finding some cross platform solution and instead work on those rumble profiles. They are cumbersome to write for DirectInput and I'm certain every other library is the same (less perhaps ones with helper methods).
Pfft, we're game programmers! We can do that in our sleep :whistle:
Personally, I would worry less about finding some cross platform solution and instead work on those rumble profiles. They are cumbersome to write for DirectInput and I'm certain every other library is the same (less perhaps ones with helper methods).
http://www.nutty.ca - Being a nut has its advantages.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












