X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=platform%2Fsdli.cpp;h=21adc456c3c011ba0fd2fc44afe98aa88dea7b75;hb=604f7846ec8dfbeb9a371e55905fd2d252379131;hp=0e454d1a571de3441a83629af2527b42863a392e;hpb=3c8655f48627ddf7c6ecab2bdf31f5bbab8cf276;p=drnoksnes diff --git a/platform/sdli.cpp b/platform/sdli.cpp index 0e454d1..21adc45 100644 --- a/platform/sdli.cpp +++ b/platform/sdli.cpp @@ -6,6 +6,10 @@ #include "display.h" #include "sdlv.h" // Dispatching video-related events +#if CONF_ZEEMOTE +#include "zeemote.h" +#endif + struct TouchButton { unsigned short mask; unsigned short x, y; @@ -219,6 +223,11 @@ void S9xProcessEvents(bool block) { SDL_Event event; +#if CONF_ZEEMOTE + // Wheter blocking or non blocking, poll zeemotes now. + ZeeRead(joypads); +#endif + if (block) { SDL_WaitEvent(&event); processEvent(event); @@ -257,6 +266,10 @@ void S9xInitInputDevices() } printf("\n"); +#if CONF_ZEEMOTE + ZeeInit(); +#endif + // TODO Non-awful mouse support, Superscope S9xInputScreenChanged(); @@ -268,6 +281,9 @@ void S9xDeinitInputDevices() joypads[1] = 0; mouse.enabled = false; mouse.pressed = false; +#if CONF_ZEEMOTE + ZeeQuit(); +#endif } void S9xInputScreenChanged()