Accessibility: One Button (L3) acts as UP, RIGHT, DOWN, LEFT

L3 will cycle through a list of possibilities using a counter (called ButtonSwapper). This method could be used for a smaller or much bigger and more complex list.
Version1.00
AuthorSpecialEffect
Publish DateThu, 19 May 2016 - 17:06
Last UpdateThu, 19 May 2016 - 17:06
Downloads33
RATE


1

1

Release Notes: Written by The_Rabid_Taco with thanks.
Code: Select all
// written by The_Rabid_Taco for an Accessibility Script  on May 2016 for Titan One adapters
 
int ButtonSwapper;
main {
 
           // R3 cycles through acting as UP,RIGHT,DOWN,LEFT on each new press.
          if (event_press(PS3_L3)) {
            if (ButtonSwapper < 4) {
                ButtonSwapper = ButtonSwapper + 1; // Increment to next choice unless already at last one.
            } else if (ButtonSwapper == 4) {
                ButtonSwapper = 1// When max choice is hit, reset to first.
            }
          }
          if (get_val(PS3_L3) && ButtonSwapper == 1) {set_val(PS3_UP,100);set_val(PS3_L3,0);} // UP
          if (get_val(PS3_L3) && ButtonSwapper == 2) {set_val(PS3_RIGHT,100);set_val(PS3_L3,0);} // RIGHT
          if (get_val(PS3_L3) && ButtonSwapper == 3) {set_val(PS3_DOWN, 100);set_val(PS3_L3,0);} // DOWN
          if (get_val(PS3_L3) && ButtonSwapper == 4) {set_val(PS3_LEFT, 100);set_val(PS3_L3,0);} // LEFT
}