1
0
mirror of https://github.com/Gehstock/Mist_FPGA.git synced 2026-02-09 17:51:09 +00:00

Spy Hunter, 280ZZZAP: better brakes

This commit is contained in:
Gyorgy Szombathelyi
2020-08-22 00:11:44 +02:00
parent bb1d5b19a3
commit e99a59678b
2 changed files with 4 additions and 2 deletions

View File

@@ -99,7 +99,8 @@ begin
gas_timer <= (others => '0');
else
if vsync_r ='0' and vsync = '1' then
if (gas_timer >= 5 and (gas_minus_r = '1' or gas_plus_r = '1')) then --tune inc/dec rate
if (gas_timer >= 5 and gas_plus_r = '1') or
(gas_timer >= 3 and gas_minus_r = '1') then --tune inc/dec rate
gas_timer <= (others => '0');
else
gas_timer <= gas_timer + 1;

View File

@@ -99,7 +99,8 @@ begin
gas_timer <= (others => '0');
else
if vsync_r ='0' and vsync = '1' then
if (gas_timer >= 5 and (gas_minus_r = '1' or gas_plus_r = '1')) then --tune inc/dec rate
if (gas_timer >= 5 and gas_plus_r = '1') or
(gas_timer >= 3 and gas_minus_r = '1') then --tune inc/dec rate
gas_timer <= (others => '0');
else
gas_timer <= gas_timer + 1;