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

This commit is contained in:
alu 2010-04-17 14:47:19 +00:00
parent 67f36c9f80
commit 102a17dbaf
2 changed files with 147 additions and 139 deletions

View File

@ -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

View File

@ -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' \ choice 'Bit up' \
"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' JOYSTICK_BIT_UP 'Bit0' JOYSTICK_BIT_UP
choice 'Pin down' \ choice 'Pin down' \
"PINA PINA \ "PINA PINA \
PINB PINB \ PINB PINB \
PINC PINC \ PINC PINC \
PIND PIND" \ PIND PIND" \
'PINB' JOYSTICK_PIN_DOWN 'PINB' JOYSTICK_PIN_DOWN
choice 'Bit down' \ choice 'Bit down' \
"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' JOYSTICK_BIT_DOWN 'Bit1' JOYSTICK_BIT_DOWN
choice 'Pin left' \ choice 'Pin left' \
"PINA PINA \ "PINA PINA \
PINB PINB \ PINB PINB \
PINC PINC \ PINC PINC \
PIND PIND" \ PIND PIND" \
'PINB' JOYSTICK_PIN_LEFT 'PINB' JOYSTICK_PIN_LEFT
choice 'Bit left' \ choice 'Bit left' \
"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' JOYSTICK_BIT_LEFT 'Bit2' JOYSTICK_BIT_LEFT
choice 'Pin right' \ choice 'Pin right' \
"PINA PINA \ "PINA PINA \
PINB PINB \ PINB PINB \
PINC PINC \ PINC PINC \
PIND PIND" \ PIND PIND" \
'PINB' JOYSTICK_PIN_RIGHT 'PINB' JOYSTICK_PIN_RIGHT
choice 'Bit right' \ choice 'Bit right' \
"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" \
'Bit3' JOYSTICK_BIT_RIGHT 'Bit3' JOYSTICK_BIT_RIGHT
choice 'Pin fire' \ choice 'Pin fire' \
"PINA PINA \ "PINA PINA \
PINB PINB \ PINB PINB \
PINC PINC \ PINC PINC \
PIND PIND" \ PIND PIND" \
'PIND' JOYSTICK_PIN_FIRE 'PIND' JOYSTICK_PIN_FIRE
choice 'Bit fire' \ choice 'Bit fire' \
"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" \
'Bit3' JOYSTICK_BIT_FIRE 'Bit3' JOYSTICK_BIT_FIRE
fi
endmenu 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' \ choice 'Port ds' \
"PORTA PORTA \ "PORTA PORTA \
PORTB PORTB \ PORTB PORTB \
PORTC PORTC \ PORTC PORTC \
PORTD PORTD" \ PORTD PORTD" \
'PORTB' NES_PAD_PORT_PL 'PORTB' NES_PAD_PORT_PL
choice 'Pin pl' \ choice 'Pin pl' \
"PORTA PORTA \ "PORTA PORTA \
PORTB PORTB \ PORTB PORTB \
PORTC PORTC \ PORTC PORTC \
PORTD PORTD" \ PORTD PORTD" \
'PORTB' NES_PAD_PORT_DS 'PORTB' NES_PAD_PORT_DS
choice 'Bit clk' \
"Bit0 0 \
Bit1 1 \
Bit2 2 \
Bit3 3 \
Bit4 4 \
Bit5 5 \
Bit6 6 \
Bit7 7" \
'Bit0' NES_PAD_BIT_CLK
choice 'Bit clk' \ 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" \
'Bit0' NES_PAD_BIT_CLK 'Bit1' NES_PAD_BIT_PL
choice 'Bit pl' \ 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" \
'Bit1' NES_PAD_BIT_PL 'Bit2' NES_PAD_BIT_DS
choice 'Bit ds' \ fi
"Bit0 0 \
Bit1 1 \
Bit2 2 \
Bit3 3 \
Bit4 4 \
Bit5 5 \
Bit6 6 \
Bit7 7" \
'Bit2' NES_PAD_BIT_DS
endmenu
endmenu
############################################################################### ###############################################################################
fi
endmenu endmenu