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:
bicarus
2026-10-11 01:04:14 -07:00
committed by GitHub
parent cf5d87d4d5
commit fdc7adff7f
22 changed files with 1358 additions and 79 deletions
+2 -5
View File
@@ -46,17 +46,14 @@ MessageData *ACIODeviceEmu::create_msg(uint8_t addr, uint16_t code, uint8_t pid,
}
// allocate data
auto data_raw = new uint8_t[MSG_HEADER_SIZE + data_size];
auto msg = new MessageData {};
// set header
auto msg = (MessageData *) &data_raw[0];
set_header(msg, addr, code, pid, (uint8_t) data_size);
// set data
if (data) {
memcpy(data_raw + MSG_HEADER_SIZE, data, data_size);
} else {
memset(data_raw + MSG_HEADER_SIZE, 0, data_size);
memcpy(msg->cmd.raw, data, data_size);
}
// return prepared message