src/video/bwindow/SDL_BWin.h
changeset 1614 6162b8d921ce
parent 1367 e440d5c488c1
child 1658 e49147870aac
child 1895 c121d94672cb
child 3878 678576473849
equal deleted inserted replaced
1613:2095da6364c9 1614:6162b8d921ce
   476 					break;
   476 					break;
   477 
   477 
   478 				if (msg->FindInt32("key", &key) == B_OK && msg->FindInt32("modifiers", &modifiers) == B_OK) {
   478 				if (msg->FindInt32("key", &key) == B_OK && msg->FindInt32("modifiers", &modifiers) == B_OK) {
   479 					SDL_keysym keysym;
   479 					SDL_keysym keysym;
   480 					keysym.scancode = key;
   480 					keysym.scancode = key;
   481 					if (key < 128) {
   481 					if ((key > 0) && (key < 128)) {
   482 						keysym.sym = keymap[key];
   482 						keysym.sym = keymap[key];
   483 					} else {
   483 					} else {
   484 						keysym.sym = SDLK_UNKNOWN;
   484 						keysym.sym = SDLK_UNKNOWN;
   485 					}
   485 					}
   486 					/*	FIX THIS?
   486 					/*	FIX THIS?
   509 				int32 key;
   509 				int32 key;
   510 				int32 modifiers;
   510 				int32 modifiers;
   511 				if (msg->FindInt32("key", &key) == B_OK && msg->FindInt32("modifiers", &modifiers) == B_OK) {
   511 				if (msg->FindInt32("key", &key) == B_OK && 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 < 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;
   518 					}
   518 					}
   519 					keysym.mod = KMOD_NONE; /* FIX THIS? */
   519 					keysym.mod = KMOD_NONE; /* FIX THIS? */