Real Wii Remote support over Bluetooth (#323)

* pass real wii remotes through emulated bluetooth

* build bluetooth tests on macos ci

* address review comments

* cancel replaced bluetooth reads
This commit is contained in:
patchzyy
2026-10-20 12:21:46 +02:00
committed by GitHub
parent e3f5e3a3ec
commit dfe32f61e1
44 changed files with 5548 additions and 1964 deletions
+7
View File
@@ -1,4 +1,5 @@
#include "memory.h"
#include "hle/hollywood_gpio.h"
#include <algorithm>
#include <array>
@@ -643,6 +644,9 @@ uint16_t MemoryInline::Read16Slow(uint32_t addr) {
uint32_t MemoryInline::Read32Slow(uint32_t addr) {
if (IsMmioAddress(addr)) {
if (uint32_t value = 0; HollywoodGpio_Read32(addr, value)) {
return value;
}
ThrowMmioReadBlocked(addr, sizeof(uint32_t));
}
ResolveDeferredReads(addr, sizeof(uint32_t));
@@ -708,6 +712,9 @@ void MemoryInline::Write32Slow(uint32_t addr, uint32_t val) {
return;
}
if (IsMmioAddress(addr)) {
if (HollywoodGpio_Write32(addr, val)) {
return;
}
throw Memory::AccessViolation(addr, sizeof(val), "MMIO write blocked (non-GPU)");
}
WriteScalar(addr, val);