SDL_ForceFeedback?

I’m curious why there are no commands for force feedback in SDL, at least
support for windows thru directInput. I would think this should not be very hard
to implement, look at MSDN it should only be a few more lines of code.
Link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/di
rectx/input/tuts/tut4

Yes I’ve seen the work done by J. Grant, but I think SDL should have this
built in with it’s joystick commands and not need to worry about Ps2Linux…

PS2Linux just provides a kernel module for DualShock pads. All SDL
Actuator support is going to call some low-level functions on each
platform. e.g. the new linux kernel code for sidewinder pads.

I would welcome DX9 version of my actuator support functions. Shouldnt
be too hard for you or someone else to implement based on my patch.

JG

on the 02/07/03 19:49, MysticMugs2 at cs.com wrote:> I’m curious why there are no commands for force feedback in SDL, at least

support for windows thru directInput. I would think this should not be very hard
to implement, look at MSDN it should only be a few more lines of code.
Link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/di
rectx/input/tuts/tut4

Yes I’ve seen the work done by J. Grant, but I think SDL should have this
built in with it’s joystick commands and not need to worry about Ps2Linux…

I think this is a pretty cool idea. But does it replace the sdl joystick api,
or just add to it?On 03-Jul-2003, J. Grant wrote:

PS2Linux just provides a kernel module for DualShock pads. All SDL
Actuator support is going to call some low-level functions on each
platform. e.g. the new linux kernel code for sidewinder pads.

I would welcome DX9 version of my actuator support functions. Shouldnt
be too hard for you or someone else to implement based on my patch.

JG

on the 02/07/03 19:49, MysticMugs2 at cs.com wrote:

I’m curious why there are no commands for force feedback in SDL, at least
support for windows thru directInput. I would think this should not be
very hard to implement, look at MSDN it should only be a few more lines of
code.
Link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/di
rectx/input/tuts/tut4

Yes I’ve seen the work done by J. Grant, but I think SDL should have this
built in with it’s joystick commands and not need to worry about Ps2Linux…


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Patrick “Diablo-D3” McFarland || unknown at panax.com
"Computer games don’t affect kids; I mean if Pac-Man affected us as kids, we’d
all be running around in darkened rooms, munching magic pills and listening to
repetitive electronic music." – Kristian Wilson, Nintendo, Inc, 1989

I just added a few extra functions. My patch included a native PS2Linux
joystick module too.

My original email follows.

JG> ----- Original Message -----

Subject: Re: [SDL] Force feedback joystick actuator patch - alpha
Date: Fri, 07 Mar 2003 17:49:06 +0000
From: @J_Grant1 (J. Grant)
To: sdl at libsdl.org
References: <3E616785.6020805 at jguk.org>

Hi All,

OK, I’ve got it all working perfectly now. It has been tested on
PS2Linux and my pc a little too. (patch is attached)

Included in this patch:
2003-03-07

  • Force feedback actuator API for SDL:
    SDL_JoystickNumActuators();
    SDL_JoystickSetActuator();
    SDL_JoystickGetActuatorType();
    SDL_JoystickGetActuatorRange();

  • PS2Linux native joystick module - supporting plain digital, Analog
    and DualShock 1/2 controllers.

  • PS2Linux implementation of force feedback API.

  • Other joystick modules patched with dummy functions to work with the
    new API.

  • testactuator.c created to test the actuator API and the PS2Linux
    implementation.

  • testjoysticktext.c created to test the joystick in text mode.

  • testjoystick.c modifed to return info about the actuators on the
    device.

  • testjoystick.c added extra argv[2] to select the analog stick other
    than 0.

  • testjoystick.c modified to avoid analog stick display going off the
    edge of screen (overscan issue).

  • added startup printf usage help to testjoystick, and aditional
    programs by myself.

  • configure.in and PS2Linux makefile.am patched to support the new
    features.

  • added extra generated filenames to .cvsignore (so that “diff -X
    SDL12/.cvsignore” provides clean output).

  • renamed several “Playstation 2” comments to "PS2Linux in
    configure.in (for clarity, because I have been doing some native PS2).

It has been great fun implementing all of this. Now it would be great
if more platforms were supported by this API addition. If someone else
with a force feedback joystick can code up another platform module this
would be great.

I am on ICQ 11122941 if anyone uses ICQ at all.

Cheers

JG

on the 04/07/03 01:49, Patrick McFarland wrote:

I think this is a pretty cool idea. But does it replace the sdl joystick api,
or just add to it?

On 03-Jul-2003, J. Grant wrote:

PS2Linux just provides a kernel module for DualShock pads. All SDL
Actuator support is going to call some low-level functions on each
platform. e.g. the new linux kernel code for sidewinder pads.

I would welcome DX9 version of my actuator support functions. Shouldnt
be too hard for you or someone else to implement based on my patch.

JG

on the 02/07/03 19:49, MysticMugs2 at cs.com wrote:

I’m curious why there are no commands for force feedback in SDL, at least
support for windows thru directInput. I would think this should not be
very hard to implement, look at MSDN it should only be a few more lines of
code.
Link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/di
rectx/input/tuts/tut4

Yes I’ve seen the work done by J. Grant, but I think SDL should have this
built in with it’s joystick commands and not need to worry about Ps2Linux…


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl