Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -uraN asciiportal1.2c-src.orig/ap_draw.cpp asciiportal1.2c-src.new/ap_draw.cpp
- --- asciiportal1.2c-src.orig/ap_draw.cpp 2009-11-17 01:05:34.000000000 +0100
- +++ asciiportal1.2c-src.new/ap_draw.cpp 2010-07-04 19:44:57.311757566 +0200
- @@ -502,12 +502,16 @@
- #ifdef __dingoo__
- pdc_screen = SDL_SetVideoMode(320, 200, 16, SDL_SWSURFACE | (SDL_FULLSCREEN * fullscreen));
- #else
- +#ifdef __pandora__
- + pdc_screen = SDL_SetVideoMode(800, 480, 16, SDL_SWSURFACE | SDL_FULLSCREEN);
- +#else
- if (!def) {
- SDL_Init( SDL_INIT_EVERYTHING );
- pdc_screen = SDL_SetVideoMode(width, height, 32, SDL_SWSURFACE | (SDL_FULLSCREEN * fullscreen));
- }
- #endif
- #endif
- +#endif
- SDL_JoystickOpen( 0 );
- #endif
- diff -uraN asciiportal1.2c-src.orig/ap_input.cpp asciiportal1.2c-src.new/ap_input.cpp
- --- asciiportal1.2c-src.orig/ap_input.cpp 2009-11-19 13:02:54.000000000 +0100
- +++ asciiportal1.2c-src.new/ap_input.cpp 2010-07-04 19:44:57.311757566 +0200
- @@ -212,6 +212,20 @@
- case SDLK_RETURN: key = KEY_F(1); break; // Start button
- case SDLK_ESCAPE: key = KEY_F(2); break; // Y key (left)
- #endif
- +#ifdef __pandora__
- + case SDLK_UP: key = KEY_UP; break;
- + case SDLK_DOWN: key = KEY_DOWN; break;
- + case SDLK_LEFT: key = KEY_LEFT; break;
- + case SDLK_RIGHT: key = KEY_RIGHT; break;
- + case SDLK_HOME: key = 'z'; break; // A key
- + case SDLK_PAGEDOWN: key = ' '; break; // X key
- + case SDLK_PAGEUP: key = 'c'; break; // Y key
- + case SDLK_END: key = 'x'; break; // B key
- + case SDLK_RCTRL: key = 'x'; break; // Right Shoulder
- + case SDLK_RSHIFT: key = 'z'; break; // Left Shoulder
- + case SDLK_LCTRL: key = KEY_F(2); break;
- + case SDLK_LALT: key = 0x1B; break;
- +#endif
- default: break;
- }
- break;
- diff -uraN asciiportal1.2c-src.orig/menu.cpp asciiportal1.2c-src.new/menu.cpp
- --- asciiportal1.2c-src.orig/menu.cpp 2009-11-19 13:01:20.000000000 +0100
- +++ asciiportal1.2c-src.new/menu.cpp 2010-07-04 19:44:57.312757575 +0200
- @@ -79,6 +79,24 @@
- "Select ............ Portal View Options"
- };
- #else
- +#ifdef __pandora__
- + int numkeys = 13;
- + string keys[] = {
- + " How to play ASCIIpOrtal ",
- + "=========================",
- + "Use the following keys:",
- + "Left/Right ........ Move Left/Right",
- + "Up/Down ........... Move Up/Down Ladders",
- + " or adjust aim.",
- + "L Shoulder/A....... Fire Blue Portal",
- + "R Shoulder/B....... Fire Yellow Portal",
- + "X ................. Fire 'Next' Portal",
- + "Y ................. Cancel Portals",
- + "",
- + "Start ............. Menu",
- + "Select ............ Portal View Options"
- + };
- +#else
- #ifdef __GP2X__
- int numkeys = 12;
- string keys[] = {
- @@ -122,7 +140,7 @@
- };
- #endif
- #endif
- -
- +#endif
- pauserun(1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement