Common subdirectories: ../../../../scummvm/backends/platform/psp/.deps and ./.deps
diff -U5 ../../../../scummvm/backends/platform/psp/osys_psp.cpp ./osys_psp.cpp
old
|
new
|
|
445 | 445 | //any of the other buttons. |
446 | 446 | event.type = buttonsChanged & pad.Buttons ? Common::EVENT_KEYDOWN : Common::EVENT_KEYUP; |
447 | 447 | event.kbd.flags = 0; |
448 | 448 | |
449 | 449 | if (buttonsChanged & PSP_CTRL_LTRIGGER) { |
450 | | event.kbd.keycode = SDLK_ESCAPE; |
| 450 | event.kbd.keycode = Common::KEYCODE_ESCAPE; |
451 | 451 | event.kbd.ascii = 27; |
452 | 452 | } else if (buttonsChanged & PSP_CTRL_RTRIGGER) { |
453 | | event.kbd.keycode = SDLK_RETURN; |
| 453 | event.kbd.keycode = Common::KEYCODE_RETURN; |
454 | 454 | event.kbd.ascii = 13; |
455 | 455 | } else if (buttonsChanged & PSP_CTRL_START) { |
456 | | event.kbd.keycode = SDLK_F5; |
| 456 | event.kbd.keycode = Common::KEYCODE_F5; |
457 | 457 | event.kbd.ascii = 319; |
458 | 458 | /* } else if (buttonsChanged & PSP_CTRL_SELECT) { |
459 | 459 | event.kbd.keycode = SDLK_0; |
460 | 460 | event.kbd.ascii = '0'; |
461 | 461 | */ } else if (buttonsChanged & PSP_CTRL_SQUARE) { |
462 | | event.kbd.keycode = SDLK_PERIOD; |
| 462 | event.kbd.keycode = Common::KEYCODE_PERIOD; |
463 | 463 | event.kbd.ascii = '.'; |
464 | 464 | } |
465 | 465 | |
466 | 466 | } |
467 | 467 | |
diff -U5 ../../../../scummvm/backends/platform/psp/osys_psp_gu.cpp ./osys_psp_gu.cpp
old
|
new
|
|
485 | 485 | _keyboardMode ^= SYMBOLS; |
486 | 486 | |
487 | 487 | if ( (buttonsChanged & PSP_CTRL_LEFT) && !(pad.Buttons & PSP_CTRL_LEFT)) { |
488 | 488 | event.kbd.flags = 0; |
489 | 489 | event.kbd.ascii = 0; |
490 | | event.kbd.keycode = SDLK_LEFT; |
| 490 | event.kbd.keycode = Common::KEYCODE_LEFT; |
491 | 491 | _prevButtons = pad.Buttons; |
492 | 492 | return true; |
493 | 493 | } |
494 | 494 | |
495 | 495 | if ( (buttonsChanged & PSP_CTRL_RIGHT) && !(pad.Buttons & PSP_CTRL_RIGHT)) { |
496 | 496 | event.kbd.flags = 0; |
497 | 497 | event.kbd.ascii = 0; |
498 | | event.kbd.keycode = SDLK_RIGHT; |
| 498 | event.kbd.keycode = Common::KEYCODE_RIGHT; |
499 | 499 | _prevButtons = pad.Buttons; |
500 | 500 | return true; |
501 | 501 | } |
502 | 502 | |
503 | 503 | if ( (buttonsChanged & PSP_CTRL_UP) && !(pad.Buttons & PSP_CTRL_UP)) { |
504 | 504 | event.kbd.flags = 0; |
505 | 505 | event.kbd.ascii = 0; |
506 | | event.kbd.keycode = SDLK_UP; |
| 506 | event.kbd.keycode = Common::KEYCODE_UP; |
507 | 507 | _prevButtons = pad.Buttons; |
508 | 508 | return true; |
509 | 509 | } |
510 | 510 | |
511 | 511 | if ( (buttonsChanged & PSP_CTRL_DOWN) && !(pad.Buttons & PSP_CTRL_DOWN)) { |
512 | 512 | event.kbd.flags = 0; |
513 | 513 | event.kbd.ascii = 0; |
514 | | event.kbd.keycode = SDLK_DOWN; |
| 514 | event.kbd.keycode = Common::KEYCODE_DOWN; |
515 | 515 | _prevButtons = pad.Buttons; |
516 | 516 | return true; |
517 | 517 | } |
518 | 518 | |
519 | 519 | // compute nub direction |
… |
… |
|
533 | 533 | if(_keySelected > 26) { |
534 | 534 | event.kbd.flags = 0; |
535 | 535 | switch(_keySelected) { |
536 | 536 | case 27: |
537 | 537 | event.kbd.ascii = ' '; |
538 | | event.kbd.keycode = SDLK_SPACE; |
| 538 | event.kbd.keycode = Common::KEYCODE_SPACE; |
539 | 539 | break; |
540 | 540 | case 28: |
541 | 541 | event.kbd.ascii = 127; |
542 | | event.kbd.keycode = SDLK_DELETE; |
| 542 | event.kbd.keycode = Common::KEYCODE_DELETE; |
543 | 543 | break; |
544 | 544 | case 29: |
545 | 545 | event.kbd.ascii = 8; |
546 | | event.kbd.keycode = SDLK_BACKSPACE; |
| 546 | event.kbd.keycode = Common::KEYCODE_BACKSPACE; |
547 | 547 | break; |
548 | 548 | case 30: |
549 | 549 | event.kbd.ascii = 13; |
550 | | event.kbd.keycode = SDLK_RETURN; |
| 550 | event.kbd.keycode = Common::KEYCODE_RETURN; |
551 | 551 | break; |
552 | 552 | } |
553 | 553 | } else { |
554 | 554 | switch( _keyboardMode) { |
555 | 555 | case 0: |
556 | 556 | event.kbd.flags = 0; |
557 | 557 | event.kbd.ascii = 'a'+_keySelected-1; |
558 | | event.kbd.keycode = SDLK_a + _keySelected-1; |
| 558 | event.kbd.keycode = (Common::KeyCode)(Common::KEYCODE_a + _keySelected-1); |
559 | 559 | break; |
560 | 560 | case CAPS_LOCK: |
561 | 561 | event.kbd.ascii = 'A'+_keySelected-1; |
562 | | event.kbd.keycode = SDLK_a + _keySelected-1; |
| 562 | event.kbd.keycode = (Common::KeyCode)(Common::KEYCODE_a + _keySelected-1); |
563 | 563 | event.kbd.flags = Common::KBD_SHIFT; |
564 | 564 | break; |
565 | 565 | case SYMBOLS: |
566 | 566 | if (_keySelected < 21) { |
567 | 567 | event.kbd.flags = 0; |
568 | 568 | event.kbd.ascii = kbd_ascii[_keySelected-1]; |
569 | | event.kbd.keycode = kbd_code[ _keySelected-1]; |
| 569 | event.kbd.keycode = (Common::KeyCode)kbd_code[ _keySelected-1]; |
570 | 570 | } |
571 | 571 | break; |
572 | 572 | case (SYMBOLS|CAPS_LOCK): |
573 | 573 | if(_keySelected < 21) { |
574 | 574 | event.kbd.flags = 0; |
575 | 575 | event.kbd.ascii = kbd_ascii_cl[_keySelected-1]; |
576 | | event.kbd.keycode = kbd_code_cl[ _keySelected-1]; |
| 576 | event.kbd.keycode = (Common::KeyCode)kbd_code_cl[ _keySelected-1]; |
577 | 577 | } |
578 | 578 | break; |
579 | 579 | } |
580 | 580 | } |
581 | 581 | _prevButtons = pad.Buttons; |