public boolean isControlPressed ( int button , int controller ) { if ( controllerPressed [ controller ] [ button ] ) { controllerPressed [ controller ] [ button ] = false ; return true ; } return false ; }
Check if a controller button has been pressed since last time