summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2008-04-16 14:37:14 +0000
committerCedric BAIL <cedric.bail@free.fr>2008-04-16 14:37:14 +0000
commitae88b42feb70bbbb3f4a31f1ea81fa9ae6661352 (patch)
tree6fcb5427c853d98a27c76696aaa09631573c52d5
parent04d82e3825e317a79a9f90ffbe3eb0537c851f2a (diff)
Use SDL definition instead of their numeric value.
SVN revision: 34282
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_sdl/ecore_sdl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/legacy/ecore/src/lib/ecore_sdl/ecore_sdl.c b/legacy/ecore/src/lib/ecore_sdl/ecore_sdl.c
index 0a53596114..2d9d3168a2 100644
--- a/legacy/ecore/src/lib/ecore_sdl/ecore_sdl.c
+++ b/legacy/ecore/src/lib/ecore_sdl/ecore_sdl.c
@@ -89,8 +89,8 @@ ecore_sdl_feed_events(void)
89 } 89 }
90 case SDL_MOUSEBUTTONDOWN: 90 case SDL_MOUSEBUTTONDOWN:
91 { 91 {
92 if (event.button.button == 5 || 92 if (event.button.button == SDL_BUTTON_WHEELUP ||
93 event.button.button == 6) 93 event.button.button == SDL_BUTTON_WHEELDOWN)
94 { 94 {
95 Ecore_Sdl_Event_Mouse_Wheel *ev; 95 Ecore_Sdl_Event_Mouse_Wheel *ev;
96 96
@@ -98,7 +98,7 @@ ecore_sdl_feed_events(void)
98 ev->x = event.button.x; 98 ev->x = event.button.x;
99 ev->y = event.button.y; 99 ev->y = event.button.y;
100 ev->direction = 0; 100 ev->direction = 0;
101 ev->wheel = event.button.button == 5 ? -1 : 1; 101 ev->wheel = event.button.button == SDL_BUTTON_WHEELDOWN ? -1 : 1;
102 ev->time = time; 102 ev->time = time;
103 103
104 ecore_event_add(ECORE_SDL_EVENT_MOUSE_WHEEL, ev, NULL, NULL); 104 ecore_event_add(ECORE_SDL_EVENT_MOUSE_WHEEL, ev, NULL, NULL);