SongJo

Untitled

Feb 22nd, 2019
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var _map = async_load;
  2.  
  3. switch (_map[? "event_type"])
  4. {
  5.     case "gamepad discovered":
  6.        
  7.         var _slot = _map[? "pad_index"];
  8.        
  9.         if (global.gamepadIndex == -1) global.gamepadIndex = _slot;
  10.        
  11.         break;
  12.    
  13.     case "gamepad lost":
  14.        
  15.         var _slot = _map[? "pad_index"];
  16.         global.gamepadIndex = -1;
  17.        
  18.         break;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment