essos/essos.cpp
// Must be called holding context mutex
Must be called holding context mutex
Must be called holding context mutex
static EssGamepad *essGetGamepadFromPath( EssCtx *ctx, const char *path )
{
   EssGamepad *gp= 0;
   if ( ctx && path )
   {
      int i, imax;
      imax= ctx->gamepads.size();
      for( i= 0; i < imax; ++i )
      {
         if ( strcmp( path, ctx->gamepads[i]->devicePath ) == 0 )
         {
            gp= ctx->gamepads[i];
            break;
         }
      }
   }
   return gp;
}
static EssGamepad * essGetGamepadFromPath ( EssCtx * ctx , const char * path ) { EssGamepad * gp = 0 ; if ( ctx && path ) { int i , imax ; imax = ctx -> gamepads . size ( ) ; for ( i = 0 ; i < imax ; ++ i ) { if ( strcmp ( path , ctx -> gamepads [ i ] -> devicePath ) == 0 ) { gp = ctx -> gamepads [ i ] ; break ; } } } return gp ; }
Must be called holding context mutex
Must be called holding context mutex