let's try gainput again

This commit is contained in:
Simone
2024-01-22 15:26:13 +01:00
parent 410f9f62fc
commit 9be2b238d2
5 changed files with 17 additions and 16 deletions

View File

@@ -208,6 +208,7 @@ void PIF::ProcessCommands(Mem &mem) {
channel++;
break;
case 1:
UpdateController();
if(!ReadButtons(res)) {
cmd[1] |= 0x80;
}

View File

@@ -115,7 +115,7 @@ enum Axis {
};
struct PIF {
PIF() = default;
PIF() : inputMap(inputManager) {}
~PIF() = default;
void Reset();
void MaybeLoadMempak();
@@ -136,7 +136,7 @@ struct PIF {
bool gamepadConnected = false, mempakOpen = false;
gainput::InputManager inputManager;
gainput::InputMap inputMap{ inputManager };
gainput::InputMap inputMap;
gainput::DeviceId keyboardId, padId;
JoybusDevice joybusDevices[6]{};
u8 bootrom[PIF_BOOTROM_SIZE]{}, ram[PIF_RAM_SIZE]{};