- Timestamp:
- 07/23/2017 10:40:02 AM (7 years ago)
- Branches:
- master
- Children:
- 7eb8971
- Parents:
- bb4fd0c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emu/cpu.c
rbb4fd0c ra23f3d9 620 620 621 621 bool run = true; 622 bool down = false;622 SDL_Scancode down = SDL_SCANCODE_UNKNOWN; 623 623 624 624 while (run) { … … 634 634 635 635 if (ev.type == SDL_KEYDOWN) { 636 if (down ) {636 if (down == ev.key.keysym.scancode) { 637 637 continue; 638 638 } 639 639 640 down = true;640 down = ev.key.keysym.scancode; 641 641 } 642 642 else if (ev.type == SDL_KEYUP) { 643 down = false;643 down = SDL_SCANCODE_UNKNOWN; 644 644 } 645 645
Note:
See TracChangeset
for help on using the changeset viewer.