-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "+" and "-" commands to tune countdown value
- Loading branch information
1 parent
f239ebc
commit 3b4f893
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* TTY-CLOCK Main file. | ||
* Copyright © 2009-2018 tty-clock contributors | ||
* Copyright © 2009-2021 tty-clock contributors | ||
* Copyright © 2008 Martin Duquesnoy <[email protected]> | ||
* All rights reserved. | ||
* | ||
|
@@ -631,6 +631,16 @@ key_event(void) | |
ttyclock.lt_paused = ttyclock.lt; | ||
break; | ||
|
||
case '+': | ||
if(ttyclock.lt_origin) | ||
ttyclock.lt_origin += 60; | ||
break; | ||
|
||
case '-': | ||
if(ttyclock.lt_origin) | ||
ttyclock.lt_origin -= 60; | ||
break; | ||
|
||
case ' ': | ||
if(!ttyclock.lt_paused) | ||
ttyclock.lt_paused = ttyclock.lt; | ||
|