inpSetVibration

Sets continuous vibration on both controller motors. Takes controller (Int), leftSpeed (Int from 0 to 65535), rightSpeed (Int from 0 to 65535). Returns nothing.

Input

Parameters & Returns

Parameters

controller Int
leftSpeed Int
rightSpeed Int

Returns

Void

Quick Summary

Sets continuous vibration on both controller motors. Takes controller (Int), leftSpeed (Int from 0 to 65535), rightSpeed (Int from 0 to 65535). Returns nothing.

Technical Exegesis...

Sets the vibration intensity for both the left and right motors of the controller. The vibration continues indefinitely until stopped with inpStopVibration() or changed with another vibration call.

The speed values range from 0 to 65535, where 0 is no vibration and 65535 is maximum intensity. The left motor is typically the low-frequency rumble motor, while the right motor is the high-frequency vibration motor.

The controller must be created with inpCreateController() before setting vibration.

Example

Example.bam
; No example implemented yet