Accessibility: Latching

This script latches L2 (or L-TRIGGER) on and off. This can easily be adjusted and expanded upon. Originally uploaded to assist a player with Batman, it could be easily changed to R2 to make driving games easier. Adjust the TOGGLE_VAL if the motion is too fast. For more on accessible gaming, see SpecialEffect at www.SpecialEffect.org.uk.
Version1.00
AuthorSpecialEffect
Publish DateSat, 4 Jul 2015 - 10:02
Last UpdateSat, 4 Jul 2015 - 10:02
Downloads45
RATE


1

0

Code: Select all
// Script created for www.SpecialEffect.org.uk
// Simple latching of L2 on/off (orignally for Chuck K to play Batman)
 
 
define TOGGLE_VAL = 100;
int L2ToggleON = FALSE;
 
 
main {
 
  // Forward Movement
  if (event_press(PS3_L2)) {L2ToggleON = !L2ToggleON;} // Toggles L2 on/off
  if (L2ToggleON) {set_val(PS3_L2,-TOGGLE_VAL);} // -value is ACTIVE; +value is INACTIVE
 
}