src/events/SDL_keyboard.c
changeset 7778 a571a9947869
parent 7678 286c42d7c5ed
child 8093 b43765095a6f
equal deleted inserted replaced
7777:d5489cec371b 7778:a571a9947869
   505     "Eject",
   505     "Eject",
   506     "Sleep",
   506     "Sleep",
   507 };
   507 };
   508 
   508 
   509 /* Taken from SDL_iconv() */
   509 /* Taken from SDL_iconv() */
   510 static char *
   510 char *
   511 SDL_UCS4ToUTF8(Uint32 ch, char *dst)
   511 SDL_UCS4ToUTF8(Uint32 ch, char *dst)
   512 {
   512 {
   513     Uint8 *p = (Uint8 *) dst;
   513     Uint8 *p = (Uint8 *) dst;
   514     if (ch <= 0x7F) {
   514     if (ch <= 0x7F) {
   515         *p = (Uint8) ch;
   515         *p = (Uint8) ch;