From 1f8cc2843103a71cd180b685e92c4bb1bbe61c81 Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Sat, 4 Mar 2017 16:49:33 +0100 Subject: [PATCH] Add support for Logitech USB remote presenter (powerpoint shortcuts). --- catpoint.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/catpoint.c b/catpoint.c index ef208c0..cfb882b 100644 --- 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; }