Mercurial > sdl-ios-xcode
comparison src/video/wscons/SDL_wsconsevents.c @ 1596:56f952883795
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 23 Mar 2006 07:38:32 +0000 |
parents | d910939febfa |
children | 782fd950bd46 c121d94672cb a1b03ba2fcd0 |
comparison
equal
deleted
inserted
replaced
1595:4aa7df2476e7 | 1596:56f952883795 |
---|---|
119 if ((n = read(private->fd, buf, sizeof(buf))) > 0) { | 119 if ((n = read(private->fd, buf, sizeof(buf))) > 0) { |
120 for (i = 0; i < n; i++) { | 120 for (i = 0; i < n; i++) { |
121 unsigned char c = buf[i] & 0x7f; | 121 unsigned char c = buf[i] & 0x7f; |
122 if (c == 224) // special key prefix -- what should we do with it? | 122 if (c == 224) // special key prefix -- what should we do with it? |
123 continue; | 123 continue; |
124 int release = (buf[i] & 0x80) != 0; | 124 posted += SDL_PrivateKeyboard((buf[i] & 0x80) ? SDL_RELEASED : SDL_PRESSED, |
125 posted += SDL_PrivateKeyboard(release ? SDL_RELEASED : SDL_PRESSED, | |
126 TranslateKey(c, &keysym)); | 125 TranslateKey(c, &keysym)); |
127 } | 126 } |
128 } | 127 } |
129 } | 128 } |
130 | 129 |