Xbox One Controller on Xbox 360 - Rumble Triggers
This script will make the triggers on the XB1 controller rumble whenever the controller would normally rumble. You can set the intensity of the rumble within the script using variable "It" Feel free to add this script into another script if you wish. Just please include my email address for the sake of credit :). This script may also work when using the XB1 controller on PS3, I don't own one though so I can't test it.
Release Notes: I will flesh this script out as soon as possible. I originally had the triggers rumble only if they were depressed, but this caused some weird glitches. Feel free to email me with suggestions for improvement!
- Code: Select all
//Intensity Variable. Set "It" higher to decrease rumble. DO NOT GO UNDER 4. Recommended is 7.
//I multiplied the incoming rumble readings so that the trigger rumble intensity can be better regulated using the intensity variable.
int It = 7;
set_rumble(RUMBLE_LT, ((get_rumble (RUMBLE_A)*2)+(get_rumble (RUMBLE_B)*2)/It));
set_rumble(RUMBLE_RT, ((get_rumble (RUMBLE_A)*2)+(get_rumble (RUMBLE_B)*2)/It));