Browse Source

Selectring joystick support now enables parallel joystick support automatically. Selecting Tetris selects the default Tetris, too

feature/2015
alu 14 years ago
parent
commit
102a17dbaf
  1. 12
      games/config.in
  2. 310
      joystick/config.in

12
games/config.in

@ -2,11 +2,13 @@ mainmenu_option next_comment
comment "Games" comment "Games"
mainmenu_option next_comment mainmenu_option next_comment
comment "Tetris" dep_bool_menu "Tetris" GAME_TETRIS_CORE y $JOYSTICK_SUPPORT
dep_bool "Tetris Core (please select at least one of the below, too)" GAME_TETRIS_CORE $JOYSTICK_SUPPORT $RANDOM_SUPPORT if [ "$GAME_TETRIS_CORE" = "y" ]; then
dep_bool "Standard Tetris" GAME_TETRIS $GAME_TETRIS_CORE GAME_TETRIS=y
dep_bool "Bastard Tetris" GAME_BASTET $GAME_TETRIS_CORE dep_bool "Standard Tetris" GAME_TETRIS $GAME_TETRIS_CORE
dep_bool "First Person Tetris" GAME_TETRIS_FP $GAME_TETRIS_CORE dep_bool "Bastard Tetris" GAME_BASTET $GAME_TETRIS_CORE
dep_bool "First Person Tetris" GAME_TETRIS_FP $GAME_TETRIS_CORE
fi
endmenu endmenu
dep_bool "space invaders" GAME_SPACE_INVADERS $JOYSTICK_SUPPORT $RANDOM_SUPPORT dep_bool "space invaders" GAME_SPACE_INVADERS $JOYSTICK_SUPPORT $RANDOM_SUPPORT

310
joystick/config.in

@ -1,162 +1,168 @@
dep_bool_menu "joystick support" JOYSTICK_SUPPORT y dep_bool_menu "joystick support" JOYSTICK_SUPPORT y
if [ "$JOYSTICK_SUPPORT" = "y" ]; then
PARALLEL_JOYSTICK_SUPPORT=y
###################### Parallel joystick menu ################################# ###################### Parallel joystick menu #################################
dep_bool_menu "parallel joystick support" PARALLEL_JOYSTICK_SUPPORT y dep_bool_menu "parallel joystick support" PARALLEL_JOYSTICK_SUPPORT y
choice 'Pin up' \ if [ "$PARALLEL_JOYSTICK_SUPPORT" = "y" ]; then
"PINA PINA \ choice 'Pin up' \
PINB PINB \ "PINA PINA \
PINC PINC \ PINB PINB \
PIND PIND" \ PINC PINC \
'PINB' JOYSTICK_PIN_UP PIND PIND" \
'PINB' JOYSTICK_PIN_UP
choice 'Bit up' \
"Bit0 0 \ choice 'Bit up' \
Bit1 1 \ "Bit0 0 \
Bit2 2 \ Bit1 1 \
Bit3 3 \ Bit2 2 \
Bit4 4 \ Bit3 3 \
Bit5 5 \ Bit4 4 \
Bit6 6 \ Bit5 5 \
Bit7 7" \ Bit6 6 \
'Bit0' JOYSTICK_BIT_UP Bit7 7" \
'Bit0' JOYSTICK_BIT_UP
choice 'Pin down' \
"PINA PINA \ choice 'Pin down' \
PINB PINB \ "PINA PINA \
PINC PINC \ PINB PINB \
PIND PIND" \ PINC PINC \
'PINB' JOYSTICK_PIN_DOWN PIND PIND" \
'PINB' JOYSTICK_PIN_DOWN
choice 'Bit down' \
"Bit0 0 \ choice 'Bit down' \
Bit1 1 \ "Bit0 0 \
Bit2 2 \ Bit1 1 \
Bit3 3 \ Bit2 2 \
Bit4 4 \ Bit3 3 \
Bit5 5 \ Bit4 4 \
Bit6 6 \ Bit5 5 \
Bit7 7" \ Bit6 6 \
'Bit1' JOYSTICK_BIT_DOWN Bit7 7" \
'Bit1' JOYSTICK_BIT_DOWN
choice 'Pin left' \
"PINA PINA \ choice 'Pin left' \
PINB PINB \ "PINA PINA \
PINC PINC \ PINB PINB \
PIND PIND" \ PINC PINC \
'PINB' JOYSTICK_PIN_LEFT PIND PIND" \
'PINB' JOYSTICK_PIN_LEFT
choice 'Bit left' \
"Bit0 0 \ choice 'Bit left' \
Bit1 1 \ "Bit0 0 \
Bit2 2 \ Bit1 1 \
Bit3 3 \ Bit2 2 \
Bit4 4 \ Bit3 3 \
Bit5 5 \ Bit4 4 \
Bit6 6 \ Bit5 5 \
Bit7 7" \ Bit6 6 \
'Bit2' JOYSTICK_BIT_LEFT Bit7 7" \
'Bit2' JOYSTICK_BIT_LEFT
choice 'Pin right' \
"PINA PINA \ choice 'Pin right' \
PINB PINB \ "PINA PINA \
PINC PINC \ PINB PINB \
PIND PIND" \ PINC PINC \
'PINB' JOYSTICK_PIN_RIGHT PIND PIND" \
'PINB' JOYSTICK_PIN_RIGHT
choice 'Bit right' \
"Bit0 0 \ choice 'Bit right' \
Bit1 1 \ "Bit0 0 \
Bit2 2 \ Bit1 1 \
Bit3 3 \ Bit2 2 \
Bit4 4 \ Bit3 3 \
Bit5 5 \ Bit4 4 \
Bit6 6 \ Bit5 5 \
Bit7 7" \ Bit6 6 \
'Bit3' JOYSTICK_BIT_RIGHT Bit7 7" \
'Bit3' JOYSTICK_BIT_RIGHT
choice 'Pin fire' \
"PINA PINA \ choice 'Pin fire' \
PINB PINB \ "PINA PINA \
PINC PINC \ PINB PINB \
PIND PIND" \ PINC PINC \
'PIND' JOYSTICK_PIN_FIRE PIND PIND" \
'PIND' JOYSTICK_PIN_FIRE
choice 'Bit fire' \
"Bit0 0 \ choice 'Bit fire' \
Bit1 1 \ "Bit0 0 \
Bit2 2 \ Bit1 1 \
Bit3 3 \ Bit2 2 \
Bit4 4 \ Bit3 3 \
Bit5 5 \ Bit4 4 \
Bit6 6 \ Bit5 5 \
Bit7 7" \ Bit6 6 \
'Bit3' JOYSTICK_BIT_FIRE Bit7 7" \
'Bit3' JOYSTICK_BIT_FIRE
endmenu fi
endmenu
############################################################################### ###############################################################################
###################### NES-Pad menu ################################# ###################### NES-Pad menu #################################
dep_bool_menu "nes-pad support" NES_PAD_SUPPORT y dep_bool_menu "nes-pad support" NES_PAD_SUPPORT y
choice 'Port clk' \ if [ "$NES_PAD_SUPPORT" = "y" ]; then
"PORTA PORTA \ choice 'Port clk' \
PORTB PORTB \ "PORTA PORTA \
PORTC PORTC \ PORTB PORTB \
PORTD PORTD" \ PORTC PORTC \
'PORTB' NES_PAD_PORT_CLK PORTD PORTD" \
'PORTB' NES_PAD_PORT_CLK
choice 'Port ds' \
"PORTA PORTA \ choice 'Port ds' \
PORTB PORTB \ "PORTA PORTA \
PORTC PORTC \ PORTB PORTB \
PORTD PORTD" \ PORTC PORTC \
'PORTB' NES_PAD_PORT_PL PORTD PORTD" \
'PORTB' NES_PAD_PORT_PL
choice 'Pin pl' \
"PORTA PORTA \ choice 'Pin pl' \
PORTB PORTB \ "PORTA PORTA \
PORTC PORTC \ PORTB PORTB \
PORTD PORTD" \ PORTC PORTC \
'PORTB' NES_PAD_PORT_DS PORTD PORTD" \
'PORTB' NES_PAD_PORT_DS
choice 'Bit clk' \ choice 'Bit clk' \
"Bit0 0 \ "Bit0 0 \
Bit1 1 \ Bit1 1 \
Bit2 2 \ Bit2 2 \
Bit3 3 \ Bit3 3 \
Bit4 4 \ Bit4 4 \
Bit5 5 \ Bit5 5 \
Bit6 6 \ Bit6 6 \
Bit7 7" \ Bit7 7" \
'Bit0' NES_PAD_BIT_CLK 'Bit0' NES_PAD_BIT_CLK
choice 'Bit pl' \ choice 'Bit pl' \
"Bit0 0 \ "Bit0 0 \
Bit1 1 \ Bit1 1 \
Bit2 2 \ Bit2 2 \
Bit3 3 \ Bit3 3 \
Bit4 4 \ Bit4 4 \
Bit5 5 \ Bit5 5 \
Bit6 6 \ Bit6 6 \
Bit7 7" \ Bit7 7" \
'Bit1' NES_PAD_BIT_PL 'Bit1' NES_PAD_BIT_PL
choice 'Bit ds' \ choice 'Bit ds' \
"Bit0 0 \ "Bit0 0 \
Bit1 1 \ Bit1 1 \
Bit2 2 \ Bit2 2 \
Bit3 3 \ Bit3 3 \
Bit4 4 \ Bit4 4 \
Bit5 5 \ Bit5 5 \
Bit6 6 \ Bit6 6 \
Bit7 7" \ Bit7 7" \
'Bit2' NES_PAD_BIT_DS 'Bit2' NES_PAD_BIT_DS
fi
endmenu
endmenu
############################################################################### ###############################################################################
fi
endmenu endmenu

Loading…
Cancel
Save