1 *** milkytracker-0.90.85/src/tracker/sdl/SDL_Main.cpp 2009-02-22 10:20:39.140388000 +0000
2 --- milkytracker-trunk/src/tracker/sdl/SDL_Main.cpp 2010-01-03 18:11:52.541377210 +0000
5 case SDLUserEventLMouseRepeat:
8 ! p.x = (pp_int32)event.data1;
9 ! p.y = (pp_int32)event.data2;
10 PPEvent myEvent(eLMouseRepeat, &p, sizeof(PPPoint));
11 RaiseEventSerialized(&myEvent);
14 case SDLUserEventLMouseRepeat:
17 ! p.x = reinterpret_cast<intptr_t> (event.data1);
18 ! p.y = reinterpret_cast<intptr_t> (event.data2);
19 PPEvent myEvent(eLMouseRepeat, &p, sizeof(PPPoint));
20 RaiseEventSerialized(&myEvent);
24 case SDLUserEventRMouseRepeat:
27 ! p.x = (pp_int32)event.data1;
28 ! p.y = (pp_int32)event.data2;
29 PPEvent myEvent(eRMouseRepeat, &p, sizeof(PPPoint));
30 RaiseEventSerialized(&myEvent);
33 case SDLUserEventRMouseRepeat:
36 ! p.x = reinterpret_cast<intptr_t> (event.data1);
37 ! p.y = reinterpret_cast<intptr_t> (event.data2);
38 PPEvent myEvent(eRMouseRepeat, &p, sizeof(PPPoint));
39 RaiseEventSerialized(&myEvent);
44 case SDLUserEventMidiKeyDown:
46 ! pp_int32 note = (pp_int32)event.data1;
47 ! pp_int32 volume = (pp_int32)event.data2;
49 myTracker->sendNoteDown(note, volume);
50 globalMutex->unlock();
53 case SDLUserEventMidiKeyDown:
55 ! pp_int32 note = reinterpret_cast<intptr_t> (event.data1);
56 ! pp_int32 volume = reinterpret_cast<intptr_t> (event.data2);
58 myTracker->sendNoteDown(note, volume);
59 globalMutex->unlock();
63 case SDLUserEventMidiKeyUp:
65 ! pp_int32 note = (pp_int32)event.data1;
67 myTracker->sendNoteUp(note);
68 globalMutex->unlock();
71 case SDLUserEventMidiKeyUp:
73 ! pp_int32 note = reinterpret_cast<intptr_t> (event.data1);
75 myTracker->sendNoteUp(note);
76 globalMutex->unlock();