comparison tools/64vw.c @ 2531:24b32dbebe3d

Swap the meaning of page up/down keys and arrow up/down keys.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 23 May 2020 22:44:47 +0300
parents 5fcc9f7b8ad8
children c6ee41fd98dd
comparison
equal deleted inserted replaced
2530:aacf3bd1cceb 2531:24b32dbebe3d
448 case SDLK_ESCAPE: 448 case SDLK_ESCAPE:
449 case SDLK_q: 449 case SDLK_q:
450 exitFlag = TRUE; 450 exitFlag = TRUE;
451 break; 451 break;
452 452
453 case SDLK_DOWN: 453 case SDLK_UP:
454 case SDLK_LEFT: 454 case SDLK_LEFT:
455 if (currIndex > 0) 455 if (currIndex > 0)
456 currIndex--; 456 currIndex--;
457 else 457 else
458 currIndex = 0; 458 currIndex = 0;
459 break; 459 break;
460 460
461 case SDLK_SPACE: 461 case SDLK_SPACE:
462 case SDLK_UP: 462 case SDLK_DOWN:
463 case SDLK_RIGHT: 463 case SDLK_RIGHT:
464 if (currIndex + 1 < noptFilenames2) 464 if (currIndex + 1 < noptFilenames2)
465 currIndex++; 465 currIndex++;
466 else 466 else
467 currIndex = noptFilenames2 - 1; 467 currIndex = noptFilenames2 - 1;
468 break; 468 break;
469 469
470 case SDLK_PAGEDOWN: 470 case SDLK_PAGEUP:
471 if (currIndex > SET_SKIP_AMOUNT) 471 if (currIndex > SET_SKIP_AMOUNT)
472 currIndex -= SET_SKIP_AMOUNT; 472 currIndex -= SET_SKIP_AMOUNT;
473 else 473 else
474 currIndex = 0; 474 currIndex = 0;
475 break; 475 break;
476 476
477 case SDLK_PAGEUP: 477 case SDLK_PAGEDOWN:
478 if (currIndex + 1 + SET_SKIP_AMOUNT < noptFilenames2) 478 if (currIndex + 1 + SET_SKIP_AMOUNT < noptFilenames2)
479 currIndex += SET_SKIP_AMOUNT; 479 currIndex += SET_SKIP_AMOUNT;
480 else 480 else
481 currIndex = noptFilenames2 - 1; 481 currIndex = noptFilenames2 - 1;
482 break; 482 break;