comparison src/video/directfb/SDL_DirectFB_events.c @ 2735:204be4fc2726

Final merge of Google Summer of Code 2008 work... Port SDL 1.3 to the Nintendo DS by Darren Alton, mentored by Sam Lantinga
author Sam Lantinga <slouken@libsdl.org>
date Wed, 27 Aug 2008 15:10:03 +0000
parents e82a0e3e9b0e
children 140a7edcf2bd
comparison
equal deleted inserted replaced
2734:dd25eabe441c 2735:204be4fc2726
381 mod = 0; 381 mod = 0;
382 382
383 switch (evt.type) { 383 switch (evt.type) {
384 case DIET_BUTTONPRESS: 384 case DIET_BUTTONPRESS:
385 posted += SDL_PrivateMouseButton(SDL_PRESSED, 385 posted += SDL_PrivateMouseButton(SDL_PRESSED,
386 DirectFB_TranslateButton(evt. 386 DirectFB_TranslateButton
387 button), 387 (evt.button), 0, 0);
388 0, 0);
389 break; 388 break;
390 case DIET_BUTTONRELEASE: 389 case DIET_BUTTONRELEASE:
391 posted += SDL_PrivateMouseButton(SDL_RELEASED, 390 posted += SDL_PrivateMouseButton(SDL_RELEASED,
392 DirectFB_TranslateButton(evt. 391 DirectFB_TranslateButton
393 button), 392 (evt.button), 0, 0);
394 0, 0);
395 break; 393 break;
396 case DIET_KEYPRESS: 394 case DIET_KEYPRESS:
397 posted += SDL_PrivateKeyboard(SDL_PRESSED, 395 posted += SDL_PrivateKeyboard(SDL_PRESSED,
398 DirectFB_TranslateKey(evt. 396 DirectFB_TranslateKey
399 key_id, 397 (evt.key_id, evt.key_symbol,
400 evt. 398 mod, &keysym));
401 key_symbol,
402 mod,
403 &keysym));
404 break; 399 break;
405 case DIET_KEYRELEASE: 400 case DIET_KEYRELEASE:
406 posted += SDL_PrivateKeyboard(SDL_RELEASED, 401 posted += SDL_PrivateKeyboard(SDL_RELEASED,
407 DirectFB_TranslateKey(evt. 402 DirectFB_TranslateKey
408 key_id, 403 (evt.key_id, evt.key_symbol,
409 evt. 404 mod, &keysym));
410 key_symbol,
411 mod,
412 &keysym));
413 break; 405 break;
414 case DIET_AXISMOTION: 406 case DIET_AXISMOTION:
415 if (evt.flags & DIEF_AXISREL) { 407 if (evt.flags & DIEF_AXISREL) {
416 if (evt.axis == DIAI_X) 408 if (evt.axis == DIAI_X)
417 posted += 409 posted +=