--- hatari/src/includes/keymap.h 2019/04/01 07:10:01 1.1.1.2 +++ hatari/src/includes/keymap.h 2019/04/09 08:54:27 1.1.1.6 @@ -1,9 +1,20 @@ /* - Hatari + Hatari - keymap.h + + 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. */ -extern char Keymap_RemapKeyToSTScanCode(unsigned int Key); +#ifndef HATARI_KEYMAP_H +#define HATARI_KEYMAP_H + +#include + +extern void Keymap_Init(void); extern void Keymap_LoadRemapFile(char *pszFileName); extern void Keymap_DebounceAllKeys(void); -extern void Keymap_KeyDown(unsigned int sdlkey, unsigned int sdlmod); -extern void Keymap_KeyUp(unsigned int sdlkey, unsigned int sdlmod); +extern void Keymap_KeyDown(SDL_keysym *sdlkey); +extern void Keymap_KeyUp(SDL_keysym *sdlkey); +extern void Keymap_SimulateCharacter(char asckey, bool press); + +#endif