comparison src/video/directfb/SDL_DirectFB_events.c @ 2259:1e690901ecd7

Date: Fri, 17 Aug 2007 01:12:31 +0200 From: Couriersud Subject: fix for audio dsp exit crash / various dfb issues improved cursor handling fixes some mouse and event related bugs
author Sam Lantinga <slouken@libsdl.org>
date Fri, 17 Aug 2007 02:54:50 +0000
parents 0e70b4b8cf84
children e1da92da346c e82a0e3e9b0e
comparison
equal deleted inserted replaced
2258:771bd3389e3a 2259:1e690901ecd7
62 case DWET_BUTTONUP: 62 case DWET_BUTTONUP:
63 SDL_SendMouseButton(devdata->mouse, SDL_RELEASED, 63 SDL_SendMouseButton(devdata->mouse, SDL_RELEASED,
64 DirectFB_TranslateButton(evt.button)); 64 DirectFB_TranslateButton(evt.button));
65 break; 65 break;
66 case DWET_MOTION: 66 case DWET_MOTION:
67 SDL_SendMouseMotion(devdata->mouse, 0, evt.x, evt.y); 67 SDL_SendMouseMotion(devdata->mouse, 0, evt.cx, evt.cy);
68 break; 68 break;
69 case DWET_KEYDOWN: 69 case DWET_KEYDOWN:
70 DirectFB_TranslateKey(evt.key_id, evt.key_symbol, 70 DirectFB_TranslateKey(evt.key_id, evt.key_symbol,
71 evt.modifiers, &keysym); 71 evt.modifiers, &keysym);
72 SDL_SendKeyboardKey(devdata->keyboard, SDL_PRESSED, 72 SDL_SendKeyboardKey(devdata->keyboard, SDL_PRESSED,
77 evt.modifiers, &keysym); 77 evt.modifiers, &keysym);
78 SDL_SendKeyboardKey(devdata->keyboard, SDL_RELEASED, 78 SDL_SendKeyboardKey(devdata->keyboard, SDL_RELEASED,
79 keysym.scancode, keysym.sym); 79 keysym.scancode, keysym.sym);
80 break; 80 break;
81 case DWET_POSITION_SIZE: 81 case DWET_POSITION_SIZE:
82 SDL_SendWindowEvent(p->id, SDL_WINDOWEVENT_MOVED, evt.cx, 82 SDL_SendWindowEvent(p->id, SDL_WINDOWEVENT_MOVED, evt.x,
83 evt.cy); 83 evt.y);
84 SDL_SendWindowEvent(p->id, SDL_WINDOWEVENT_RESIZED, evt.w, 84 SDL_SendWindowEvent(p->id, SDL_WINDOWEVENT_RESIZED, evt.w,
85 evt.h); 85 evt.h);
86 break; 86 break;
87 case DWET_POSITION: 87 case DWET_POSITION:
88 SDL_SendWindowEvent(p->id, SDL_WINDOWEVENT_MOVED, evt.cx, 88 SDL_SendWindowEvent(p->id, SDL_WINDOWEVENT_MOVED, evt.x,
89 evt.cy); 89 evt.y);
90 break; 90 break;
91 case DWET_SIZE: 91 case DWET_SIZE:
92 SDL_SendWindowEvent(p->id, SDL_WINDOWEVENT_RESIZED, evt.w, 92 SDL_SendWindowEvent(p->id, SDL_WINDOWEVENT_RESIZED, evt.w,
93 evt.h); 93 evt.h);
94 break; 94 break;