Skip to content

Commit

Permalink
Put in our makeshift arrowkey support when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
enkiv2 committed Jul 14, 2011
1 parent a703a1f commit 0be071b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/zz.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ const void nav_cells(int pid) { //@ handle navigation, display, and editing
puts("Indicate direction of connection, or c to cancel");
modality=5;
} else {
if(kb_cmd > 65) kb_buf=kbcmd_trans[kb_buf];
if(kb_buf!='w' && kb_buf!='a' && kb_buf!='s' && kb_buf!='d' && kb_buf!='c') {
timer_wait(1);
displaytime();
Expand Down Expand Up @@ -386,6 +387,7 @@ const void nav_cells(int pid) { //@ handle navigation, display, and editing
modality=3;
yield();
} else if (modality==3) {
if(kb_cmd > 65) kb_buf=kbcmd_trans[kb_buf];
if(kb_buf=='c')
modality=0;
yield();
Expand Down Expand Up @@ -426,6 +428,7 @@ const inline void relink() {
puts("Indicate direction of connection, or c to cancel");
modality=1;
} else {
if(kb_cmd > 65) kb_buf=kbcmd_trans[kb_buf];
if(kb_buf!='w' && kb_buf!='a' && kb_buf!='s' && kb_buf!='d' && kb_buf!='c') {
timer_wait(1);
displaytime();
Expand Down

0 comments on commit 0be071b

Please sign in to comment.