mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-12-05 19:16:42 -08:00
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>
37 lines
849 B
C++
37 lines
849 B
C++
#pragma once
|
|
|
|
#include <mutex>
|
|
|
|
#include "acioemu/acioemu.h"
|
|
#include "hooks/devicehook.h"
|
|
|
|
namespace acioemu {
|
|
|
|
class ACIOHandle : public CustomHandle {
|
|
private:
|
|
LPCWSTR com_port;
|
|
|
|
uint8_t icca_node_count;
|
|
|
|
acioemu::ACIOEmu acio_emu;
|
|
std::mutex mutex;
|
|
bool initialized = false;
|
|
|
|
public:
|
|
ACIOHandle(LPCWSTR lpCOMPort, uint8_t iccaNodeCount = 2);
|
|
|
|
bool open(LPCWSTR lpFileName) override;
|
|
|
|
int read(LPVOID lpBuffer, DWORD nNumberOfBytesToRead) override;
|
|
|
|
int write(LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite) override;
|
|
|
|
int device_io(DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer,
|
|
DWORD nOutBufferSize) override;
|
|
|
|
size_t bytes_available() override;
|
|
|
|
bool close() override;
|
|
};
|
|
}
|