# vim: set noexpandtab cc=80:
#
# CPC/Emulator to host keymap
# Line format: CPC_KEY<tab>HOST_KEY<tab>[OPTIONAL_MODIFIER]
# Edit this at your own risk. It is *strongly* advised to back up this
# file before trying to modify it.
#
CPC_0	SDLK_0
CPC_1	SDLK_1
CPC_2	SDLK_2
CPC_3	SDLK_3
CPC_4	SDLK_4
CPC_5	SDLK_5
CPC_6	SDLK_6
CPC_7	SDLK_7
CPC_8	SDLK_8
CPC_9	SDLK_9
CPC_A	SDLK_a	MOD_PC_SHIFT
CPC_B	SDLK_b	MOD_PC_SHIFT
CPC_C	SDLK_c	MOD_PC_SHIFT
CPC_D	SDLK_d	MOD_PC_SHIFT
CPC_E	SDLK_e	MOD_PC_SHIFT
CPC_F	SDLK_f	MOD_PC_SHIFT
CPC_G	SDLK_g	MOD_PC_SHIFT
CPC_H	SDLK_h	MOD_PC_SHIFT
CPC_I	SDLK_i	MOD_PC_SHIFT
CPC_J	SDLK_j	MOD_PC_SHIFT
CPC_K	SDLK_k	MOD_PC_SHIFT
CPC_L	SDLK_l	MOD_PC_SHIFT
CPC_M	SDLK_m	MOD_PC_SHIFT
CPC_N	SDLK_n	MOD_PC_SHIFT
CPC_O	SDLK_o	MOD_PC_SHIFT
CPC_P	SDLK_p	MOD_PC_SHIFT
CPC_Q	SDLK_q	MOD_PC_SHIFT
CPC_R	SDLK_r	MOD_PC_SHIFT
CPC_S	SDLK_s	MOD_PC_SHIFT
CPC_T	SDLK_t	MOD_PC_SHIFT
CPC_U	SDLK_u	MOD_PC_SHIFT
CPC_V	SDLK_v	MOD_PC_SHIFT
CPC_W	SDLK_w	MOD_PC_SHIFT
CPC_X	SDLK_x	MOD_PC_SHIFT
CPC_Y	SDLK_y	MOD_PC_SHIFT
CPC_Z	SDLK_z	MOD_PC_SHIFT
CPC_a	SDLK_a
CPC_b	SDLK_b
CPC_c	SDLK_c
CPC_d	SDLK_d
CPC_e	SDLK_e
CPC_f	SDLK_f
CPC_g	SDLK_g
CPC_h	SD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H	SDLK_SLASH
CPC_SPACE	SDLK_SPACE
CPC_TAB	SDLK_TAB
CPC_UNDERSCORE	SDLK_MINUS	MOD_PC_SHIFT
# No pound on a US keyboard... emulating it with AltGr + P
CPC_POUND	SDLK_p	MOD_PC_MODE
#
# Emulator keymap
#
CAP32_DEBUG	SDLK_F12
CAP32_PASTE	SDLK_F11
CAP32_EXIT	SDLK_F10
CAP32_SPEED	SDLK_F9
CAP32_FPS	SDLK_F8
CAP32_JOY	SDLK_F7
CAP32_PHAZER	SDLK_F7	MOD_PC_SHIFT
CAP32_MF2STOP	SDLK_F6
CAP32_RESET	SDLK_F5
CAP32_NEXTDISKA	SDLK_F5	MOD_PC_SHIFT
CAP32_TAPEPLAY	SDLK_F4
CAP32_SCRNSHOT	SDLK_F3
CAP32_SNAPSHOT	SDLK_F3	MOD_PC_SHIFT
CAP32_LD_SNAP	SDLK_F4	MOD_PC_SHIFT
CAP32_FULLSCRN	SDLK_F2
CAP32_GUI	SDLK_F1
CAP32_VKBD	SDLK_F1	MOD_PC_SHIFT
CAP32_WAITBREAK	SDLK_PAUSE
CAP32_DELAY	SDLK_PAUSE	MOD_PC_SHIFT
CAP32_DEVTOOLS	SDLK_F2	MOD_PC_SHIFT
