Changeset 969 for libcaca/trunk/caca
- Timestamp:
- May 20, 2006, 7:29:24 AM (15 years ago)
- Location:
- libcaca/trunk/caca
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca/caca.h
r964 r969 50 50 * field is valid and contains either the ASCII value for the key, or 51 51 * an \e enum \e caca_key value. If the value is a printable ASCII 52 * character, the \e data.key.u cs4and \e data.key.utf8 fields are53 * also filled and contain respectively the U CS-4/UTF-32and the UTF-852 * character, the \e data.key.utf32 and \e data.key.utf8 fields are 53 * also filled and contain respectively the UTF-32/UCS-4 and the UTF-8 54 54 * representations of the character. Otherwise, their content is 55 55 * undefined. … … 93 93 struct { unsigned int x, y, button; } mouse; 94 94 struct { unsigned int w, h; } resize; 95 struct { unsigned int ch; unsigned long int u cs4; char utf8[8]; } key;95 struct { unsigned int ch; unsigned long int utf32; char utf8[8]; } key; 96 96 } data; 97 97 }; -
libcaca/trunk/caca/driver_conio.c
r859 r969 136 136 ev->type = CACA_EVENT_KEY_PRESS; 137 137 ev->data.key.ch = ch; 138 ev->data.key.u cs4= (uint32_t)ch;138 ev->data.key.utf32 = (uint32_t)ch; 139 139 ev->data.key.utf8[0] = ch; 140 140 ev->data.key.utf8[1] = '\0'; -
libcaca/trunk/caca/driver_gl.c
r918 r969 477 477 ev->type = CACA_EVENT_KEY_PRESS; 478 478 ev->data.key.ch = dp->drv.p->key; 479 ev->data.key.u cs4= (uint32_t)dp->drv.p->key;479 ev->data.key.utf32 = (uint32_t)dp->drv.p->key; 480 480 ev->data.key.utf8[0] = dp->drv.p->key; 481 481 ev->data.key.utf8[1] = '\0'; … … 515 515 516 516 ev->type = CACA_EVENT_KEY_PRESS; 517 ev->data.key.u cs4= 0;517 ev->data.key.utf32 = 0; 518 518 ev->data.key.utf8[0] = '\0'; 519 519 -
libcaca/trunk/caca/driver_ncurses.c
r962 r969 429 429 430 430 ev->type = CACA_EVENT_KEY_PRESS; 431 ev->data.key.u cs4= 0;431 ev->data.key.utf32 = 0; 432 432 ev->data.key.utf8[0] = '\0'; 433 433 return 1; -
libcaca/trunk/caca/driver_slang.c
r962 r969 338 338 339 339 ev->type = CACA_EVENT_KEY_PRESS; 340 ev->data.key.u cs4= 0;340 ev->data.key.utf32 = 0; 341 341 ev->data.key.utf8[0] = '\0'; 342 342 return 1; -
libcaca/trunk/caca/driver_win32.c
r864 r969 257 257 { 258 258 ev->data.key.ch = rec.Event.KeyEvent.uChar.AsciiChar; 259 ev->data.key.u cs4= (uint32_t)ev->data.key.ch;259 ev->data.key.utf32 = (uint32_t)ev->data.key.ch; 260 260 ev->data.key.utf8[0] = ev->data.key.ch; 261 261 ev->data.key.utf8[1] = '\0'; -
libcaca/trunk/caca/driver_x11.c
r947 r969 509 509 { 510 510 ev->data.key.ch = key; 511 ev->data.key.u cs4= key;511 ev->data.key.utf32 = key; 512 512 ev->data.key.utf8[0] = key; 513 513 ev->data.key.utf8[1] = '\0'; … … 549 549 } 550 550 551 ev->data.key.u cs4= 0;551 ev->data.key.utf32 = 0; 552 552 ev->data.key.utf8[0] = '\0'; 553 553 return 1; -
libcaca/trunk/caca/event.c
r923 r969 202 202 && dp->events.last_key_event.type 203 203 && ev->data.key.ch == dp->events.last_key_event.data.key.ch 204 && ev->data.key.u cs4 == dp->events.last_key_event.data.key.ucs4)204 && ev->data.key.utf32 == dp->events.last_key_event.data.key.utf32) 205 205 { 206 206 dp->events.last_key_ticks = 0;
Note: See TracChangeset
for help on using the changeset viewer.