Add support for Logitech USB remote presenter (powerpoint shortcuts).

master
Christoph Lohmann 2017-03-04 16:49:33 +01:00
parent b36909615c
commit 1f8cc28431
1 changed files with 7 additions and 0 deletions

View File

@ -55,6 +55,10 @@ show:
again: again:
c = getch(); c = getch();
switch (c) { switch (c) {
/* powerpoint remote presenter shortcuts */
case 27:
case KEY_F(5):
/* end presentation */
case 'q': case 'q':
break; break;
/* next */ /* next */
@ -79,6 +83,8 @@ again:
goto show; goto show;
} }
goto again; goto again;
/* shortcut from powerpoint. Needed for remote presenters. */
case '.':
/* first */ /* first */
case 'u': case 'u':
case KEY_BEG: case KEY_BEG:
@ -91,6 +97,7 @@ again:
i = argc - 1; i = argc - 1;
goto show; goto show;
default: default:
/* printf("key pressed = '%d'\n", c); */
goto again; goto again;
} }