Skip to content

Commit

Permalink
single click fire working, double click cruise control working, only …
Browse files Browse the repository at this point in the history
…cancel with +/-
  • Loading branch information
pharmaka committed Apr 9, 2017
1 parent 3bb9dcb commit 413c8a0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
Binary file modified bin/myevic.bin
Binary file not shown.
4 changes: 2 additions & 2 deletions src/eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,8 @@ __myevic__ void EventHandler()
gFlags.firing = 1;
FireDuration = 0;

AutoPuffTimer=2000;
Event = EVENT_AUTO_PUFF;
//AutoPuffTimer=2000;
//Event = EVENT_AUTO_PUFF;
//gFlags.autopuff=1;

if ( BattProbeCount == 1 ) BattProbeCount = 2;
Expand Down
23 changes: 18 additions & 5 deletions src/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,26 @@ __myevic__ void GetUserInput()
}
else
{

if (gFlags.autopuff)
{
if ( LastInputs == 1 )
{
AutoPuffTimer = 0;
gFlags.autopuff = 0;
StopFire();
}
}
if ( gFlags.firing )
{
if ( LastInputs == 1 )
StopFire();
{
if (!gFlags.autopuff)
StopFire();
if (gFlags.autopuff)
{
AutoPuffTimer = 0;
gFlags.autopuff = 0;
//StopFire();
StopFire();
}
}
gFlags.user_idle = 1;
Expand Down Expand Up @@ -364,10 +374,13 @@ __myevic__ void GetUserInput()
break;

case 2:
AutoPuffTimer=2000;
AutoPuffTimer=6000;
Event = EVENT_AUTO_PUFF;
gFlags.autopuff=1;
break;
if ( Screen != 1 || !EditModeTimer || EditItemIndex != 4 )
{
Event = 1; // fire
}
case 3:
case 4:
switch ( dfClick[FireClickCount-2] )
Expand Down

0 comments on commit 413c8a0

Please sign in to comment.