Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_events.c @ 2698:e1da92da346c gsoc2008_nds
Clean up.
author | Darren Alton <dalton@stevens.edu> |
---|---|
date | Wed, 27 Aug 2008 04:23:38 +0000 |
parents | 1e690901ecd7 |
children |
comparison
equal
deleted
inserted
replaced
2697:c9121b04cffa | 2698:e1da92da346c |
---|---|
309 mod = 0; | 309 mod = 0; |
310 | 310 |
311 switch (evt.type) { | 311 switch (evt.type) { |
312 case DIET_BUTTONPRESS: | 312 case DIET_BUTTONPRESS: |
313 posted += SDL_PrivateMouseButton(SDL_PRESSED, | 313 posted += SDL_PrivateMouseButton(SDL_PRESSED, |
314 DirectFB_TranslateButton(evt. | 314 DirectFB_TranslateButton |
315 button), | 315 (evt.button), 0, 0); |
316 0, 0); | |
317 break; | 316 break; |
318 case DIET_BUTTONRELEASE: | 317 case DIET_BUTTONRELEASE: |
319 posted += SDL_PrivateMouseButton(SDL_RELEASED, | 318 posted += SDL_PrivateMouseButton(SDL_RELEASED, |
320 DirectFB_TranslateButton(evt. | 319 DirectFB_TranslateButton |
321 button), | 320 (evt.button), 0, 0); |
322 0, 0); | |
323 break; | 321 break; |
324 case DIET_KEYPRESS: | 322 case DIET_KEYPRESS: |
325 posted += SDL_PrivateKeyboard(SDL_PRESSED, | 323 posted += SDL_PrivateKeyboard(SDL_PRESSED, |
326 DirectFB_TranslateKey(evt. | 324 DirectFB_TranslateKey |
327 key_id, | 325 (evt.key_id, evt.key_symbol, |
328 evt. | 326 mod, &keysym)); |
329 key_symbol, | |
330 mod, | |
331 &keysym)); | |
332 break; | 327 break; |
333 case DIET_KEYRELEASE: | 328 case DIET_KEYRELEASE: |
334 posted += SDL_PrivateKeyboard(SDL_RELEASED, | 329 posted += SDL_PrivateKeyboard(SDL_RELEASED, |
335 DirectFB_TranslateKey(evt. | 330 DirectFB_TranslateKey |
336 key_id, | 331 (evt.key_id, evt.key_symbol, |
337 evt. | 332 mod, &keysym)); |
338 key_symbol, | |
339 mod, | |
340 &keysym)); | |
341 break; | 333 break; |
342 case DIET_AXISMOTION: | 334 case DIET_AXISMOTION: |
343 if (evt.flags & DIEF_AXISREL) { | 335 if (evt.flags & DIEF_AXISREL) { |
344 if (evt.axis == DIAI_X) | 336 if (evt.axis == DIAI_X) |
345 posted += | 337 posted += |