Rebind F10 to taunt

This commit is contained in:
simon.kagstrom 2009-04-26 05:49:17 +00:00
parent b6d10ab9bd
commit b90e393ac6
3 changed files with 7 additions and 10 deletions

View File

@ -16,7 +16,7 @@ version 10:
* Implemented sending text messages over the network to "taunt" * Implemented sending text messages over the network to "taunt"
the other player (obviously a very important feature). Pressing the other player (obviously a very important feature). Pressing
ScrLk enables this. F10 enables this.
* Rearranged menus (networking is more promptly displayed) * Rearranged menus (networking is more promptly displayed)

View File

@ -581,8 +581,11 @@ void C64Display::PollKeyboard(uint8 *key_matrix, uint8 *rev_matrix, uint8 *joyst
SAM(TheC64); SAM(TheC64);
break; break;
case SDLK_F10: // F10: Quit case SDLK_F10: // F10/ScrLk: Enter text (for network taunts)
quit_requested = true; case SDLK_SCROLLOCK:
this->entering_text_message = !this->entering_text_message;
if (this->entering_text_message)
this->text_message[0] = '\0';
break; break;
case SDLK_F11: // F11: NMI (Restore) case SDLK_F11: // F11: NMI (Restore)
@ -597,12 +600,6 @@ void C64Display::PollKeyboard(uint8 *key_matrix, uint8 *rev_matrix, uint8 *joyst
TheC64->enter_menu(); TheC64->enter_menu();
break; break;
case SDLK_SCROLLOCK:
this->entering_text_message = !this->entering_text_message;
if (this->entering_text_message)
this->text_message[0] = '\0';
break;
case SDLK_KP_PLUS: // '+' on keypad: Increase SkipFrames case SDLK_KP_PLUS: // '+' on keypad: Increase SkipFrames
ThePrefs.SkipFrames++; ThePrefs.SkipFrames++;
break; break;

View File

@ -14,7 +14,7 @@ const char *welcome[] = {
/*11*/ "In the networking menu, you can host a game over ", /*11*/ "In the networking menu, you can host a game over ",
/*12*/ "the network or browse for active games. During ", /*12*/ "the network or browse for active games. During ",
/*13*/ "network play, you can send messages to your peer ", /*13*/ "network play, you can send messages to your peer ",
/*14*/ "by pressing ScrLk on the USB keyboard. ", /*14*/ "by pressing F10 on the USB keyboard. ",
/*10*/ " ", /*10*/ " ",
/*10*/ "In each menu, the '2' button selects and entry ", /*10*/ "In each menu, the '2' button selects and entry ",
/*10*/ "and '1' cancels. ", /*10*/ "and '1' cancels. ",