--- hatari/src/includes/shortcut.h 2019/04/01 07:13:09 1.1.1.4 +++ hatari/src/includes/shortcut.h 2019/04/09 08:53:17 1.1.1.6 @@ -1,13 +1,15 @@ /* Hatari - shortcut.h - This file is distributed under the GNU Public License, version 2 or at - your option any later version. Read the file gpl.txt for details. + This file is distributed under the GNU General Public License, version 2 + or at your option any later version. Read the file gpl.txt for details. */ /* If pressed short-cut key modifier or standalone short-cut key, * retain keypress until safe to execute (start of VBL). Returns zero * if key wasn't a shortcut */ -extern int ShortCut_CheckKeys(int modkey, int symkey, BOOL press); +extern int ShortCut_CheckKeys(int modkey, int symkey, bool press); +/* Invoke shortcut identified by name */ +extern bool Shortcut_Invoke(const char *shortcut); /* Act on the stored keypress (in VBL) */ extern void ShortCut_ActKey(void);