Changeset a23f3d9 in buchla-emu for emu/ser.c


Ignore:
Timestamp:
07/23/2017 10:40:02 AM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
7eb8971
Parents:
bb4fd0c
Message:

Control character input.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emu/ser.c

    rbb4fd0c ra23f3d9  
    180180                echo('\n');
    181181                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;
    182190        }
    183191}
Note: See TracChangeset for help on using the changeset viewer.