public boolean isControllerLeft ( int controller ) { if ( controller >= getControllerCount ( ) ) { return false ; } if ( controller == ANY_CONTROLLER ) { for ( int i = 0 ; i < controllers . size ( ) ; i ++ ) { if ( isControllerLeft ( i ) ) { return true ; } } return false ; } return ( ( Controller ) controllers . get ( controller ) ) . getXAxisValue ( ) < - 0.5f || ( ( Controller ) controllers . get ( controller ) ) . getPovX ( ) < - 0.5f ; }
Check if the controller has the left direction pressed