The Cronus allows you to completely control the Rumble Motors on your controller, including the Trigger Rumble motors on an Xbox One controller. Below are the GPC commands relating to these motors.
Returns the current value of a Rumble Motor.
Sets the speed of a Rumble Motor.
Blocks any rumble signals from the console.
Resets the rumble state and returns the condition of the motors to the console.
get_rumble returns the speed of the chosen rumble motor on the controller in the form of an int. The value returned can range from 0 to 100 which represents the speed as a percentage ( % ).
<rumble_identifier> : the identifier of a rumble motor.
An int ranging from 0 to 100 which represents the current speed of the chosen motor.
set_rumble sets the speed of the chosen rumble motor on the controller.
The rumble motors are numbered 0 to 3. To make it easier to remember which motor is which, four constants have been created:
Strong Rumble Motor (Usually the Left Motor)
Weak Rumble Motor (Usually the Right Motor)
Right Trigger Motor (Xbox One controllers only)
Left Trigger Motor (Xbox One controllers only)
<rumble_identifier> : the identifier of a rumble motor. <rumble_speed> : Percentage value of the rumble motor ranging 0 - 100 represented as an int.
block_rumble does as it implies and blocks any rumble signals to the controller. Once this function is used, it remains active until such time as it is reset in the script or the script is unloaded. Example of usage:
block_rumble ( );
reset_rumble returns control of the rumble motors to the console. It also deactivates block_rumble if it is active. Example of usage:
reset_rumble ( );