comparison src/video/bwindow/SDL_BWin.h @ 5083:25d4feb7c127

Renamed SDL_keysym to SDL_KeySym Renamed SDL_scancode to SDL_ScanCode Added #defines to SDL_compat.h
author krogoway
date Mon, 24 Jan 2011 13:47:35 -0600
parents 67acc9ab60ff
children 572a73d71b5f
comparison
equal deleted inserted replaced
5082:de59e0218aa2 5083:25d4feb7c127
507 && key_repeat > 0) 507 && key_repeat > 0)
508 break; 508 break;
509 509
510 if (msg->FindInt32("key", &key) == B_OK 510 if (msg->FindInt32("key", &key) == B_OK
511 && msg->FindInt32("modifiers", &modifiers) == B_OK) { 511 && msg->FindInt32("modifiers", &modifiers) == B_OK) {
512 SDL_keysym keysym; 512 SDL_KeySym keysym;
513 keysym.scancode = key; 513 keysym.scancode = key;
514 if ((key > 0) && (key < 128)) { 514 if ((key > 0) && (key < 128)) {
515 keysym.sym = keymap[key]; 515 keysym.sym = keymap[key];
516 } else { 516 } else {
517 keysym.sym = SDLK_UNKNOWN; 517 keysym.sym = SDLK_UNKNOWN;
541 { 541 {
542 int32 key; 542 int32 key;
543 int32 modifiers; 543 int32 modifiers;
544 if (msg->FindInt32("key", &key) == B_OK 544 if (msg->FindInt32("key", &key) == B_OK
545 && msg->FindInt32("modifiers", &modifiers) == B_OK) { 545 && msg->FindInt32("modifiers", &modifiers) == B_OK) {
546 SDL_keysym keysym; 546 SDL_KeySym keysym;
547 keysym.scancode = key; 547 keysym.scancode = key;
548 if ((key > 0) && (key < 128)) { 548 if ((key > 0) && (key < 128)) {
549 keysym.sym = keymap[key]; 549 keysym.sym = keymap[key];
550 } else { 550 } else {
551 keysym.sym = SDLK_UNKNOWN; 551 keysym.sym = SDLK_UNKNOWN;