diff --git a/vice/data/C64/Makefile.am b/vice/data/C64/Makefile.am index 3a697555430..03ba1789198 100644 --- a/vice/data/C64/Makefile.am +++ b/vice/data/C64/Makefile.am @@ -70,6 +70,7 @@ gtk3_keymaps = \ sdl_keymaps = \ sdl_joymap_ps3.vjm \ sdl_joymap_thec64.vjm \ + sdl_joymap_keyrah_v3.vjm \ sdl_pos.vkm \ sdl_pos_uk.vkm \ sdl_pos_ch.vkm \ diff --git a/vice/data/C64/sdl_joymap_keyrah_v3.vjm b/vice/data/C64/sdl_joymap_keyrah_v3.vjm new file mode 100644 index 00000000000..fa4e48037e9 --- /dev/null +++ b/vice/data/C64/sdl_joymap_keyrah_v3.vjm @@ -0,0 +1,49 @@ +# VICE joystick mapping file +# +# A joystick map is read in as patch to the current map. +# +# File format: +# - comment lines start with '#' +# - keyword lines start with '!keyword' +# - normal line has 'joynum inputtype inputindex action' +# +# Keywords and their lines are: +# '!CLEAR' clear all mappings +# +# inputtype: +# 0 axis +# 1 button +# 2 hat +# +# For buttons, inputindex is the zero-based index of the button. +# For hats: hat 0 has inputindex 0,1,2,3 respectively for up, down, left and right. Hat 1 has 5,6,7,8 etc. +# For axes, and action 1 (joystick) and 2 (keyboard): axis 0 has inputindex 0,1 respectively for positive and negative, axis 1 has 2,3 etc. +# For axes, and action 6 (pot axis): inputindex is the zero-based index of the axis. +# +# action [action_parameters]: +# 0 none +# 1 pin joystick (pin: 1/2/4/8/16/32/64 = u/d/l/r/fire/fire2/fire3) +# 2 row col keyboard +# 3 map +# 4 UI activate +# 5 action-name UI function +# 6 pot potentiometer (1=pot x, 2=pot y) +# + +!CLEAR + +# Joystick +0 0 0 1 8 +0 0 1 1 4 +0 0 2 1 2 +0 0 3 1 1 + +# paddles +0 0 2 6 1 +0 0 3 6 2 + +# buttons +0 1 0 1 16 +0 1 1 1 32 +0 1 2 1 64 +