Changeset a23f3d9 in buchla-emu
- Timestamp:
- 07/23/2017 10:40:02 AM (7 years ago)
- Branches:
- master
- Children:
- 7eb8971
- Parents:
- bb4fd0c
- Location:
- emu
- Files:
-
- 2 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 -
emu/ser.c
rbb4fd0c ra23f3d9 180 180 echo('\n'); 181 181 break; 182 183 default: 184 if ((ev->keysym.mod & KMOD_CTRL) != 0 && 185 ev->keysym.sym >= SDLK_a && ev->keysym.sym <= SDLK_z) { 186 echo((uint8_t)(ev->keysym.sym - SDLK_a + 1)); 187 } 188 189 break; 182 190 } 183 191 }
Note:
See TracChangeset
for help on using the changeset viewer.