Skip to content

Commit

Permalink
add joystick mapping for keyrah v3
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@45336 379a1393-f5fb-40a0-bcee-ef074d9b53f7
  • Loading branch information
mrdudz committed Sep 18, 2024
1 parent 973c426 commit c51c387
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions vice/data/C64/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
49 changes: 49 additions & 0 deletions vice/data/C64/sdl_joymap_keyrah_v3.vjm
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c51c387

Please sign in to comment.