Warning: This site is under construction, most links will be broken.

LightX API -> lxinputjoypad -> setrumbleforce

Last modified on Thu, 19th Apr 2007 at 14:48 UTC by zipplet

lxinputjoypad.setrumbleforce


procedure setrumbleforce(
  forcelow, forcehigh: single
);


Sends a force feedback command to the joypad. If the joypad does not support force feedback, nothing will happen, however the current_force fields will still be set.

If the joypad does support rumble but only supports one type of actuator, the force to apply to the actuator will be calculated like this:

force := forcelow + (forcehigh / 3);
if force > 1 then force := 1;


This formula may be changed in the future to improve the feel of force feedback on controllers with only one actuator.

forcelow: single
The force to apply using the low frequency actuator. Range 0 -> +1, with 0 meaning no force. The low frequency actuator produces a stronger rumble.

forcehigh: single
The force to apply using the high frequency actuator. Range 0 -> +1, with 0 meaning no force. The high frequency actuator produces a weaker rumble, but at a higher frequency - more like something buzzing.

Class: lxinputjoypad