Mercurial > sdl-ios-xcode
comparison src/video/gem/SDL_gemevents.c @ 2199:7e1caa8452f3
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 15 Jul 2007 16:59:16 +0000 |
parents | f54670a477bb |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2198:fe19afb86473 | 2199:7e1caa8452f3 |
---|---|
75 event_mask = MU_MESAG | MU_TIMER | MU_KEYBD; | 75 event_mask = MU_MESAG | MU_TIMER | MU_KEYBD; |
76 if (!GEM_fullscreen && (GEM_handle >= 0)) { | 76 if (!GEM_fullscreen && (GEM_handle >= 0)) { |
77 wind_get(GEM_handle, WF_WORKXYWH, &x2, &y2, &w2, &h2); | 77 wind_get(GEM_handle, WF_WORKXYWH, &x2, &y2, &w2, &h2); |
78 event_mask |= MU_M1; | 78 event_mask |= MU_M1; |
79 mouse_event = ((SDL_GetAppState() & SDL_APPMOUSEFOCUS) == | 79 mouse_event = ((SDL_GetAppState() & SDL_APPMOUSEFOCUS) == |
80 SDL_APPMOUSEFOCUS) ? MO_LEAVE : MO_ENTER; | 80 SDL_APPMOUSEFOCUS) ? MO_LEAVE : MO_ENTER; |
81 } | 81 } |
82 | 82 |
83 resultat = evnt_multi(event_mask, | 83 resultat = evnt_multi(event_mask, |
84 0, 0, 0, | 84 0, 0, 0, |
85 mouse_event, x2, y2, w2, h2, | 85 mouse_event, x2, y2, w2, h2, |
105 /* Mouse entering/leaving window */ | 105 /* Mouse entering/leaving window */ |
106 if (resultat & MU_M1) { | 106 if (resultat & MU_M1) { |
107 if (this->input_grab == SDL_GRAB_OFF) { | 107 if (this->input_grab == SDL_GRAB_OFF) { |
108 /* Switch mouse focus state */ | 108 /* Switch mouse focus state */ |
109 SDL_PrivateAppActive((mouse_event == MO_ENTER), | 109 SDL_PrivateAppActive((mouse_event == MO_ENTER), |
110 SDL_APPMOUSEFOCUS); | 110 SDL_APPMOUSEFOCUS); |
111 } | 111 } |
112 GEM_CheckMouseMode(this); | 112 GEM_CheckMouseMode(this); |
113 } | 113 } |
114 | 114 |
115 /* Timer event ? */ | 115 /* Timer event ? */ |