Author Topic: Linux and Force Feedback with Sidewinder Force Feedback 2  (Read 4211 times)

0 Members and 1 Guest are viewing this topic.

Offline fitz

  • 21
Linux and Force Feedback with Sidewinder Force Feedback 2
Hi,

First, thank you to all the contributors to this project.
I have been playing with Freespace 2 for a while, always under Windows.
At first, I used a SideWinder Force Feedback Pro (non USB) joystick with Windows 98. I really enjoyed the immersive experiment that was provided by force effects.
When I switched to XP, I had to buy another joystick (Force Feedback 2) because force-enabled XP drivers were not available.
Now I have Vista and the same story begins again. No force effect for VISTA.
I made a few searches and found out that maybe Linux drivers were available (hid-pidff.c). I did not understand whether this is a real driver (application independent) or whether the application has to compiled with this code.
Could someone tell me whether Freespace support force feedback effects for this particular joystick? If yes what is the procedure to make this work? If no, is there a workaround or any hope that it will be supported one day ?

Many thanks.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Linux and Force Feedback with Sidewinder Force Feedback 2
Support would have to be added to the game to support FF.  I did write the code necessary for FF on Linux a few years ago, but it never did work 100% so the code was never added to the project officially.  Currently you have to write it low-level, accessing the device directly, which is somewhat painful.  I'm waiting on someone to write a high-level API that doesn't require messing around with ioctl before I even attempt to rewrite FF support.

 

Offline fitz

  • 21
Re: Linux and Force Feedback with Sidewinder Force Feedback 2
Thank you for your reply,

So if I understand it correctly, you have to write everything by yourself into the Freespace code. I can imagine this is a lot of work. So I have not understand what HID was. I thought it was a linux driver supporting Microsoft FF joysticks. Do you know what it is ?

Thanks.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Linux and Force Feedback with Sidewinder Force Feedback 2
It provides an interface for communicating with the device, but it's very low-level.  And that's what the code that I wrote utilized btw.  The problem is that it's a lot more complicated to do and any change to how the low-level interface works means that you basically have to rewrite your code.  The FF code that I worked on before was actually rewritten 3 times because of interface changes.  It was basically a situation of upgrading your kernel, and the code would no longer work until you went and fixed it.

That's the kind of thing that a high-level interface would keep us safe from.  If FF support were added to SDL for instance, then we could just write our code for the SDL support and never have to change anything.

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Linux and Force Feedback with Sidewinder Force Feedback 2
Just saw this, but:  Google Summer of Code 2008 project to implement FF into SDL

Don't know anything else about it, but it was the first google result for 'force feedback sdl'.  Maybe that'll be exactly what you need :)
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays