From be73b114c1f0882acf8d6c5adebcebaa6a4ea589 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Mon, 27 Mar 2023 19:21:20 +0200 Subject: [PATCH] minor adjustements --- README.md | 13 +++++++------ cgvm-addin/src/main.c | 7 +++++-- ...-monitor-setup.jpg => triple-monitor-setup.jpg} | Bin 3 files changed, 12 insertions(+), 8 deletions(-) rename images/{triples-monitor-setup.jpg => triple-monitor-setup.jpg} (100%) diff --git a/README.md b/README.md index 8282a5d..76f0723 100644 --- a/README.md +++ b/README.md @@ -16,16 +16,17 @@ Instead, sway's outputs are exposed by a VNC server running locally ([wayvnc](https://github.com/any1/wayvnc)). The VNC client in this repository's `vnc-client` folder is connected to the -VNC server, while at the same time using the communications library _libfxlink_ +VNC server, while at the same time using the communications library libfxlink from the [fxSDK](https://gitea.planet-casio.com/Lephenixnoir/fxsdk) to discover calculators and exchange messages. It sends framebuffer updates and receives keyboard updates (which are, unsurprisingly, forwarded to the VNC server). -The calculators themselves run [gint](https://gitea.planet-casio.com/Lephenixnoir/gint) -2.10 using newly-added support for host → calculator USB communication. They -"simply" show framebuffers they receive and send back keyboard updates so that -the calculator keyboards can control the PC. Obviously the USB driver is not -that simple... but this is invisible from the application code. +The calculators themselves run the addin in the `cgvm-addin` folder, which is +based on [gint](https://gitea.planet-casio.com/Lephenixnoir/gint) 2.10 with +newly-added support for host → calculator USB communication. They "simply" show +framebuffers they receive and send back keyboard updates so that the calculator +keyboards can control the PC. Obviously the USB driver is not that simple... +but this is invisible from the application code. The entire setup runs at about 30 FPS, which each frame taking about: diff --git a/cgvm-addin/src/main.c b/cgvm-addin/src/main.c index 8ac6191..adc6d71 100644 --- a/cgvm-addin/src/main.c +++ b/cgvm-addin/src/main.c @@ -3,12 +3,15 @@ #include #include #include -#include -#include /* Debug mode (uses gint perf counters not committed to repository) */ // #define DEBUG +#ifdef DEBUG +#include +#include +#endif + //--- // Receiving and displaying video frames //--- diff --git a/images/triples-monitor-setup.jpg b/images/triple-monitor-setup.jpg similarity index 100% rename from images/triples-monitor-setup.jpg rename to images/triple-monitor-setup.jpg