Mercurial > sdl-ios-xcode
comparison src/video/wscons/SDL_wsconsevents.c @ 1378:dc0e13e7e1ae
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 19 Feb 2006 23:38:57 +0000 |
parents | 19418e4422cb |
children | c0a74f199ecf |
comparison
equal
deleted
inserted
replaced
1377:6b36d9bee83b | 1378:dc0e13e7e1ae |
---|---|
115 SDL_keysym keysym; | 115 SDL_keysym keysym; |
116 int n, i; | 116 int n, i; |
117 | 117 |
118 if ((n = read(private->fd, buf, sizeof(buf))) > 0) { | 118 if ((n = read(private->fd, buf, sizeof(buf))) > 0) { |
119 for (i = 0; i < n; i++) { | 119 for (i = 0; i < n; i++) { |
120 char c = buf[i] & 0x7f; | 120 unsigned char c = buf[i] & 0x7f; |
121 if (c == 224) // special key prefix -- what should we do with it? | 121 if (c == 224) // special key prefix -- what should we do with it? |
122 continue; | 122 continue; |
123 int release = (buf[i] & 0x80) != 0; | 123 int release = (buf[i] & 0x80) != 0; |
124 posted += SDL_PrivateKeyboard(release ? SDL_RELEASED : SDL_PRESSED, | 124 posted += SDL_PrivateKeyboard(release ? SDL_RELEASED : SDL_PRESSED, |
125 TranslateKey(c, &keysym)); | 125 TranslateKey(c, &keysym)); |