mirror of
https://github.com/Gehstock/Mist_FPGA.git
synced 2026-01-28 04:37:29 +00:00
Midway MCR2: adjust spinner controls, add button B+C for Tron's spinner
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
-- Coin: ESC, 5, 6
|
||||
-- Start: F1, F2, 1, 2
|
||||
|
||||
-- Tron: Joystick 1 for movement, Joystick 2 (MAME keys: D, G) for turret
|
||||
-- Tron: Joystick 1 for movement, Joystick 2 (MAME keys: D, G) or Buttons B and C for turret
|
||||
-- Wacko: control Captain Krooz'r with the mouse, shoot with the joystick
|
||||
-- Kozmik Krooz'r: use the mouse for movement and shoot, rotate the turret with the joystick
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@ localparam CONF_STR = {
|
||||
"O2,Rotate Controls,Off,On;",
|
||||
"O5,Blend,Off,On;",
|
||||
"O6,Swap Joysticks,Off,On;",
|
||||
"O4,Spinner speed,Low,High;",
|
||||
"DIP;",
|
||||
"O7,Service,Off,On;",
|
||||
"T0,Reset;",
|
||||
@@ -66,6 +67,7 @@ wire rotate = status[2];
|
||||
wire blend = status[5];
|
||||
wire joyswap = status[6];
|
||||
wire service = status[7];
|
||||
wire spinspd = status[4];
|
||||
|
||||
reg oneplayer;
|
||||
reg [1:0] orientation; //left/right / portrait/landscape
|
||||
@@ -397,7 +399,7 @@ wire [6:0] spin_angle1;
|
||||
spinner spinner1 (
|
||||
.clock_40(clk_sys),
|
||||
.reset(reset),
|
||||
.btn_acc(1),
|
||||
.btn_acc(spinspd),
|
||||
.btn_left(m_left | m_up),
|
||||
.btn_right(m_right | m_down),
|
||||
.ctc_zc_to_2(vs),
|
||||
@@ -408,9 +410,9 @@ wire [6:0] spin_angle2;
|
||||
spinner spinner2 (
|
||||
.clock_40(clk_sys),
|
||||
.reset(reset),
|
||||
.btn_acc(1),
|
||||
.btn_left(m_left2 | m_up2),
|
||||
.btn_right(m_right2 | m_down2),
|
||||
.btn_acc(spinspd),
|
||||
.btn_left(m_left2 | m_up2 | (core_mod == 7'h1 && m_fireB)), // fireB for Tron
|
||||
.btn_right(m_right2 | m_down2 | (core_mod == 7'h1 && m_fireC)), // fireC for Tron
|
||||
.ctc_zc_to_2(vs),
|
||||
.spin_angle(spin_angle2)
|
||||
);
|
||||
|
||||
@@ -36,8 +36,8 @@ begin
|
||||
if btn_left = '1' then spin_count <= spin_count - 20; end if; -- left
|
||||
if btn_right = '1' then spin_count <= spin_count + 20; end if; -- right
|
||||
else
|
||||
if btn_left = '1' then spin_count <= spin_count - 55; end if;
|
||||
if btn_right = '1' then spin_count <= spin_count + 55; end if;
|
||||
if btn_left = '1' then spin_count <= spin_count - 40; end if;
|
||||
if btn_right = '1' then spin_count <= spin_count + 40; end if;
|
||||
end if;
|
||||
end if;
|
||||
end if;
|
||||
|
||||
Reference in New Issue
Block a user