add card connect support (#923)

There are no servers to test this, but:

* touch, touch with mouse
* in theory card reader should work
* printer works (RGB, front and back)
* test/service button, lights

What is (painfully) missing:
* windowed mode

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
bicarusandCopilot authored and GitHub committed 2026-10-11 01:04:14 -07:00
1 parent cf5d87d4d5
commit fdc7adff7f
22 files changed
+1358 -79

No files matched your search

+14
View File
@@ -2,6 +2,8 @@
#include <vector>
#include <string>
#include <cstdint>
#include <initializer_list>
#include <windows.h>
@@ -15,4 +17,16 @@ namespace games::shared {
extern bool PRINTER_OVERWRITE_FILE;
void printer_attach();
struct PrinterImage {
const uint8_t *data;
int width;
int height;
int components;
std::string suffix;
};
void printer_init_output(std::initializer_list<std::string> suffixes = {""});
bool printer_write_images(std::initializer_list<PrinterImage> images);
bool printer_write_image(const uint8_t *data, int width, int height, int components,
const std::string &suffix = "");
}