Add support for Logitech USB remote presenter (powerpoint shortcuts). - catpoin… | |
git clone git://bitreich.org/catpoint/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrin… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit 1f8cc2843103a71cd180b685e92c4bb1bbe61c81 | |
parent b36909615c3b554e77f843a493fda1ef6935a93b | |
Author: Christoph Lohmann <[email protected]> | |
Date: Sat, 4 Mar 2017 16:49:33 +0100 | |
Add support for Logitech USB remote presenter (powerpoint shortcuts). | |
Diffstat: | |
M catpoint.c | 7 +++++++ | |
1 file changed, 7 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/catpoint.c b/catpoint.c | |
@@ -55,6 +55,10 @@ show: | |
again: | |
c = getch(); | |
switch (c) { | |
+ /* powerpoint remote presenter shortcuts */ | |
+ case 27: | |
+ case KEY_F(5): | |
+ /* end presentation */ | |
case 'q': | |
break; | |
/* next */ | |
@@ -79,6 +83,8 @@ again: | |
goto show; | |
} | |
goto again; | |
+ /* shortcut from powerpoint. Needed for remote presenters. */ | |
+ case '.': | |
/* first */ | |
case 'u': | |
case KEY_BEG: | |
@@ -91,6 +97,7 @@ again: | |
i = argc - 1; | |
goto show; | |
default: | |
+ /* printf("key pressed = '%d'\n", c); */ | |
goto again; | |
} | |