X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fevents.c;h=5a3d0ca8c3bf75653ddfb5bdbc0877cda6d586a4;hp=73624accacbaebe9c87d0aac6c6a090d2bf97af3;hb=85ab2d263ae6041c7263a4330071512c436382f9;hpb=12a8fd3a64d6bee5ca5f5b89e4a00b49d78bbd2c diff --git a/src/events.c b/src/events.c index 73624acc..5a3d0ca8 100644 --- a/src/events.c +++ b/src/events.c @@ -1778,6 +1778,22 @@ static void HandleKeysSpecial(Key key) { DumpBrush_Small(); } + + if (GetKeyModState() & (KMOD_Control | KMOD_Meta)) + { + if (letter == 'x') // copy brush to clipboard (small size) + { + CopyBrushToClipboard_Small(); + } + else if (letter == 'c') // copy brush to clipboard (normal size) + { + CopyBrushToClipboard(); + } + else if (letter == 'v') // paste brush from Clipboard + { + CopyClipboardToBrush(); + } + } } // special key shortcuts for all game modes @@ -2039,7 +2055,7 @@ void HandleKey(Key key, int key_status) return; } - if (game_status == GAME_MODE_PLAYING && AllPlayersGone && + if (game_status == GAME_MODE_PLAYING && game.all_players_gone && (key == KSYM_Return || key == setup.shortcut.toggle_pause)) { GameEnd(); @@ -2425,7 +2441,7 @@ void HandleJoystick(void) newbutton = ((joy & JOY_BUTTON) != 0); #endif - if (newbutton && AllPlayersGone) + if (newbutton && game.all_players_gone) { GameEnd();