We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 75 - Force feedback joystick actuator patch
Summary: Force feedback joystick actuator patch
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: 2.0.0
Hardware: x86 Other
: P2 API change
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-24 02:27 UTC by Sam Lantinga
Modified: 2009-02-16 20:43 UTC (History)
0 users

See Also:


Attachments
ps2linux-actuators-09.patch (60.17 KB, patch)
2006-01-24 02:28 UTC, Sam Lantinga
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Lantinga 2006-01-24 02:27:46 UTC
[SDL] Force feedback joystick actuator patch

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
Comment 1 Sam Lantinga 2006-01-24 02:28:18 UTC
Created attachment 35 [details]
ps2linux-actuators-09.patch
Comment 3 Ryan C. Gordon 2006-01-24 03:26:43 UTC
(Flagging as an API change.)

--ryan.

Comment 4 Ryan C. Gordon 2006-01-27 11:23:22 UTC
Setting Sam as "QA Contact" on all bugs (even resolved ones) so he'll definitely be in the loop to any further discussion here about SDL.

--ryan.

Comment 5 Sam Lantinga 2009-02-16 20:43:42 UTC
Force feedback support is in SDL 1.3, thanks to Edgar Simo.  See include/SDL_haptic.h for details.