FF_RUMBLE support on haptic for Linux

Hi everyone.

I was trying the haptic code of SDL 1.3 on Linux and it works great,
but at least on Linux (don’t know about others OS) there’s a FF_RUMBLE
effect that is not implemented on the haptic code of SDL 1.3

Is this on purpose because not every OS could support it?, or there’s
any other reason for this?. Maybe because the “rumble” effect could be
simulated using the other effects?.

Thanks for all.
Ernesto

Hello,

From ff.txt (kernel/Documentation/input/):

Note: In most cases you should use FF_PERIODIC instead of FF_RUMBLE. All
devices that support FF_RUMBLE support FF_PERIODIC (square, triangle,
sine) and the other way around.

FF_RUMBLE is a hack like the new xinput stuff that’s oriented around the
typical gamepad with two differently sized actuators. The proper way to
generate effects is with the other periodic effects. If I recall
correctly it wasn’t available on all platforms either.

EdgarOn 2011?01?28? 19:45, Ernesto Domato wrote:

Hi everyone.

I was trying the haptic code of SDL 1.3 on Linux and it works great,
but at least on Linux (don’t know about others OS) there’s a FF_RUMBLE
effect that is not implemented on the haptic code of SDL 1.3

Is this on purpose because not every OS could support it?, or there’s
any other reason for this?. Maybe because the “rumble” effect could be
simulated using the other effects?.

Thanks for all.
Ernesto


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-------------- next part --------------
A non-text attachment was scrubbed…
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20110128/53eb3c3e/attachment.pgp

Ok, perfect. I took that effect from ff-utils package and the comment
on the input header of the Linux kernel. I didn’t read the ff.txt from
the kernel documentation. :slight_smile:

Then, the headers talks about two different weight motors and the
effect use a strong and weak magnitude for each motors like the
Playstation pads that use such devices. But I’ll take the
documentation advice and use the periodic effect to try simulate it.

Thanks for all anyway.
ErnestoOn Fri, Jan 28, 2011 at 16:22, Edgar Simo wrote:

Hello,

From ff.txt (kernel/Documentation/input/):

Note: In most cases you should use FF_PERIODIC instead of FF_RUMBLE. All
? ? ?devices that support FF_RUMBLE support FF_PERIODIC (square, triangle,
? ? ?sine) and the other way around.

FF_RUMBLE is a hack like the new xinput stuff that’s oriented around the
typical gamepad with two differently sized actuators. The proper way to
generate effects is with the other periodic effects. If I recall
correctly it wasn’t available on all platforms either.

Edgar

Hello,

Sam has convinced me to make a small wrapper for more simple
functionality so those that just want a bit of rumble here and there
don’t need to go through all the loops of the more powerful flexible
system. I’m a bit swamped atm but I’d like to get it out this week if
possible. It would get integrated in 1.3 to make haptic more "simple"
for those who want it so.

EdgarOn 01/02/11 00:12, Ernesto Domato wrote:

On Fri, Jan 28, 2011 at 16:22, Edgar Simo <@Edgar_Simo> wrote:

Hello,

From ff.txt (kernel/Documentation/input/):

Note: In most cases you should use FF_PERIODIC instead of FF_RUMBLE. All
devices that support FF_RUMBLE support FF_PERIODIC (square, triangle,
sine) and the other way around.

FF_RUMBLE is a hack like the new xinput stuff that’s oriented around the
typical gamepad with two differently sized actuators. The proper way to
generate effects is with the other periodic effects. If I recall
correctly it wasn’t available on all platforms either.

Edgar

Ok, perfect. I took that effect from ff-utils package and the comment
on the input header of the Linux kernel. I didn’t read the ff.txt from
the kernel documentation. :slight_smile:

Then, the headers talks about two different weight motors and the
effect use a strong and weak magnitude for each motors like the
Playstation pads that use such devices. But I’ll take the
documentation advice and use the periodic effect to try simulate it.

Thanks for all anyway.
Ernesto


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Great, that sounds good. And then I’ll be able to play with it so I
can give you some more feedback.

Thanks for all.
ErnestoOn Tue, Feb 1, 2011 at 06:48, Edgar Simo wrote:

Hello,

Sam has convinced me to make a small wrapper for more simple
functionality so those that just want a bit of rumble here and there
don’t need to go through all the loops of the more powerful flexible
system. I’m a bit swamped atm but I’d like to get it out this week if
possible. It would get integrated in 1.3 to make haptic more "simple"
for those who want it so.

Edgar