The
CronusMAX PLUS 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.
Function Name
|
Description
|
|
Returns the current value of a Rumble Motor
|
|
Set the speed of a Rumble Motor
|
|
Blocks any rumble signals from the console
|
|
Resets the rumble state and returns control of the motors to the console
|
Rumble Constants
Rumble
motors are numbered from 0 ~ 3. To make it easier to remember which Motor relates to which number,
the following Constants are available;
Name
|
Description
|
Value
|
|
Strong Rumble Motor (Usually the Left Motor)
|
0
|
|
Weak Rumble Motor (Usually the Right Motor)
|
1
|
|
Right Trigger Motor (Xbox One controllers only)
|
2
|
|
Left Trigger Motor (Xbox One controllers only)
|
3
|
get_rumble
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 ~ 100 which represents the speed in a percentage ( %
).
Example of usage:
main {
if(get_rumble(RUMBLE_A) > 50) {
}
}
|
Syntax
get_rumble ( <rumble_identifier> );
Parameters
<rumble_identifier> : the identifier of a Rumble Motor
Returns
An int ranging from 0 ~ 100 which represents the current speed of the chosen motor
|
set_rumble
set_rumble sets the speed of the chosen rumble motor on
the controller. Once a rumble has been activated by a script, it will
remain at the speed set until such time as the script sets it again, rumble is
reset or the script is unloaded.
Example of usage:
main {
if(event_press(XB1_A)) {
set_rumble(RUMBLE_A, 50);
}
}
|
Syntax
set_rumble ( <rumble_identifier> , <speed as %> );
Parameters
<rumble_identifier> : the identifier of a Rumble Motor
<speed as %> : Numerical value, range 0 ~ 100
|
block_rumble
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:
main {
if(event_press(XB1_A)) {
block_rumble();
}
}
|
Syntax
block_rumble ( );
Parameters
None
|
reset_rumble
reset_rumble returns control of the rumble motors to
the console. It also deactivates block_rumble if
it is active.
Example of usage:
main {
if(event_press(XB1_A)) {
reset_rumble();
}
}
|
Syntax
reset_rumble ( );
Parameters
None
|