diff --git a/stella/src/wince/missing.cpp b/stella/src/wince/missing.cpp index 21dd68b7e..3f4fbd8cc 100644 --- a/stella/src/wince/missing.cpp +++ b/stella/src/wince/missing.cpp @@ -26,6 +26,7 @@ char *msg = NULL; int EventHandlerState; extern OSystemWinCE *theOSystem; +extern int paddlespeed; int time(int dummy) { @@ -140,6 +141,8 @@ DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y) { return; } DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event *event) { + static int paddleres = 300000; + for (int i=0; iframeBuffer())))->IsSmartphone() ) + { + if (keycodes[0][K_RIGHT].state == 1 && paddleres > 200000) + paddleres -= paddlespeed; + else if (keycodes[0][K_LEFT].state == 1 && paddleres < 900000) + paddleres += paddlespeed; + + theOSystem->eventHandler().event()->set(Event::PaddleZeroResistance, paddleres); + theOSystem->eventHandler().event()->set(Event::PaddleZeroFire, keycodes[0][K_FIRE].state); + } + } event->type = SDL_NOEVENT; return 0;