alu
15 years ago
2 changed files with 165 additions and 157 deletions
@ -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…
Reference in new issue