Advertisement
Guest User

Untitled

a guest
Jul 4th, 2010
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.99 KB | None | 0 0
  1. diff -uraN asciiportal1.2c-src.orig/ap_draw.cpp asciiportal1.2c-src.new/ap_draw.cpp
  2. --- asciiportal1.2c-src.orig/ap_draw.cpp    2009-11-17 01:05:34.000000000 +0100
  3. +++ asciiportal1.2c-src.new/ap_draw.cpp 2010-07-04 19:44:57.311757566 +0200
  4. @@ -502,12 +502,16 @@
  5.  #ifdef __dingoo__
  6.  
  7.    pdc_screen = SDL_SetVideoMode(320, 200, 16, SDL_SWSURFACE | (SDL_FULLSCREEN * fullscreen));
  8.  
  9.  #else
  10.  
  11. +#ifdef __pandora__
  12.  
  13. +  pdc_screen = SDL_SetVideoMode(800, 480, 16, SDL_SWSURFACE | SDL_FULLSCREEN);
  14.  
  15. +#else
  16.  
  17.    if (!def) {
  18.  
  19.      SDL_Init( SDL_INIT_EVERYTHING );
  20.  
  21.      pdc_screen = SDL_SetVideoMode(width, height, 32, SDL_SWSURFACE | (SDL_FULLSCREEN * fullscreen));
  22.  
  23.    }
  24.  
  25.  #endif
  26.  
  27.  #endif
  28.  
  29. +#endif
  30.  
  31.    SDL_JoystickOpen( 0 );
  32.  
  33.  #endif
  34.  
  35.  
  36.  
  37. diff -uraN asciiportal1.2c-src.orig/ap_input.cpp asciiportal1.2c-src.new/ap_input.cpp
  38. --- asciiportal1.2c-src.orig/ap_input.cpp   2009-11-19 13:02:54.000000000 +0100
  39. +++ asciiportal1.2c-src.new/ap_input.cpp    2010-07-04 19:44:57.311757566 +0200
  40. @@ -212,6 +212,20 @@
  41.            case SDLK_RETURN: key = KEY_F(1); break; // Start button
  42.  
  43.            case SDLK_ESCAPE: key = KEY_F(2); break; // Y key (left)
  44.  
  45.  #endif
  46.  
  47. +#ifdef __pandora__
  48.  
  49. +          case SDLK_UP: key = KEY_UP; break;
  50.  
  51. +          case SDLK_DOWN: key = KEY_DOWN; break;
  52.  
  53. +          case SDLK_LEFT: key = KEY_LEFT; break;
  54.  
  55. +          case SDLK_RIGHT: key = KEY_RIGHT; break;
  56.  
  57. +          case SDLK_HOME: key = 'z'; break; // A key
  58.  
  59. +          case SDLK_PAGEDOWN: key = ' '; break; // X key
  60.  
  61. +          case SDLK_PAGEUP: key = 'c'; break; // Y key
  62.  
  63. +          case SDLK_END: key = 'x'; break; // B key
  64.  
  65. +          case SDLK_RCTRL: key = 'x'; break; // Right Shoulder
  66.  
  67. +          case SDLK_RSHIFT: key = 'z'; break; // Left Shoulder
  68.  
  69. +          case SDLK_LCTRL: key = KEY_F(2); break;
  70.  
  71. +          case SDLK_LALT: key = 0x1B; break;
  72.  
  73. +#endif
  74.  
  75.            default: break;
  76.  
  77.          }
  78.  
  79.          break;
  80.  
  81. diff -uraN asciiportal1.2c-src.orig/menu.cpp asciiportal1.2c-src.new/menu.cpp
  82. --- asciiportal1.2c-src.orig/menu.cpp   2009-11-19 13:01:20.000000000 +0100
  83. +++ asciiportal1.2c-src.new/menu.cpp    2010-07-04 19:44:57.312757575 +0200
  84. @@ -79,6 +79,24 @@
  85.      "Select ............ Portal View Options"
  86.  
  87.    };
  88.  
  89.  #else
  90.  
  91. +#ifdef __pandora__
  92.  
  93. +  int numkeys = 13;
  94.  
  95. +  string keys[] = {
  96.  
  97. +    " How to play ASCIIpOrtal ",
  98.  
  99. +    "=========================",
  100.  
  101. +    "Use the following keys:",
  102.  
  103. +    "Left/Right ........ Move Left/Right",
  104.  
  105. +    "Up/Down ........... Move Up/Down Ladders",
  106.  
  107. +    "                    or adjust aim.",
  108.  
  109. +    "L Shoulder/A....... Fire Blue Portal",
  110.  
  111. +    "R Shoulder/B....... Fire Yellow Portal",
  112.  
  113. +    "X ................. Fire 'Next' Portal",
  114.  
  115. +    "Y ................. Cancel Portals",
  116.  
  117. +    "",
  118.  
  119. +    "Start ............. Menu",
  120.  
  121. +    "Select ............ Portal View Options"
  122.  
  123. +  };
  124.  
  125. +#else
  126.  
  127.  #ifdef __GP2X__
  128.  
  129.    int numkeys = 12;
  130.  
  131.    string keys[] = {
  132.  
  133. @@ -122,7 +140,7 @@
  134.    };
  135.  
  136.  #endif
  137.  
  138.  #endif
  139.  
  140. -
  141.  
  142. +#endif
  143.  
  144.  
  145.  
  146.    pauserun(1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement