WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

setRumble

Turn each of the rumble motors on or off.
Syntax
SonyPS2. setRumble(rumbleLeft,rumbleRight)
Where SonyPS2 is the name you have given to the device in Project Designer.
Parameters
TypeNameDescription
'rumbleLeft'
Set the left rumble motor to a value between 0 (off) and 255 (maximum).
'rumbleRight'
TRUE to turn on or FALSE to turn off.
Returns
None
Note
The motor settings will only change when the next call to read the controller is used.

 

 

Valid XHTML 1.0 Transitional