]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/scummvm/files/mouse.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / scummvm / files / mouse.patch
1 --- ./backends/sdl/sdl-common.cpp~mouse.patch   2004-03-05 07:23:04.000000000 +1030
2 +++ ./backends/sdl/sdl-common.cpp       2004-05-16 07:53:24.000000000 +0930
3 @@ -866,6 +866,9 @@
4                         return true;
5  
6                 case SDL_MOUSEBUTTONDOWN:
7 +#ifdef QTOPIA
8 +                       event->event_code = EVENT_LBUTTONDOWN;
9 +#else
10                         if (ev.button.button == SDL_BUTTON_LEFT)
11                                 event->event_code = EVENT_LBUTTONDOWN;
12                         else if (ev.button.button == SDL_BUTTON_RIGHT)
13 @@ -878,18 +881,23 @@
14  #endif
15                         else
16                                 break;
17 +#endif
18  
19                         fillMouseEvent(*event, ev.button.x, ev.button.y);
20  
21                         return true;
22  
23                 case SDL_MOUSEBUTTONUP:
24 +#ifdef QTOPIA
25 +                       event->event_code = EVENT_LBUTTONUP;
26 +#else
27                         if (ev.button.button == SDL_BUTTON_LEFT)
28                                 event->event_code = EVENT_LBUTTONUP;
29                         else if (ev.button.button == SDL_BUTTON_RIGHT)
30                                 event->event_code = EVENT_RBUTTONUP;
31                         else
32                                 break;
33 +#endif
34                         fillMouseEvent(*event, ev.button.x, ev.button.y);
35  
36                         return true;