mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-12-05 19:16:42 -08:00
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:
1 parent
cf5d87d4d5
commit
fdc7adff7f
22 files changed
+1358
-79
No files matched your search
@@ -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 = "");
|
||||
}
|
||||
Reference in new issue
Block a user