private byte read_joyport(int addr) { byte ret; if (_isVS) { // for whatever reason, in VS left and right controller have swapped regs ret = addr == 0x4017 ? ControllerDeck.ReadA(_controller) : ControllerDeck.ReadB(_controller); } else { ret = addr == 0x4016 ? ControllerDeck.ReadA(_controller) : ControllerDeck.ReadB(_controller); } ret &= 0x1f; ret |= (byte)(0xe0 & DB); return(ret); }
byte read_joyport(int addr) { CoreComm.InputCallback.Call(); lagged = false; byte ret = addr == 0x4016 ? ControllerDeck.ReadA(Controller) : ControllerDeck.ReadB(Controller); ret &= 0x1f; ret |= (byte)(0xe0 & DB); return(ret); }
byte read_joyport(int addr) { InputCallbacks.Call(); lagged = false; byte ret = 0; if (_isVS) { // for whatever reason, in VS left and right controller have swapped regs ret = addr == 0x4017 ? ControllerDeck.ReadA(Controller) : ControllerDeck.ReadB(Controller); } else { ret = addr == 0x4016 ? ControllerDeck.ReadA(Controller) : ControllerDeck.ReadB(Controller); } ret &= 0x1f; ret |= (byte)(0xe0 & DB); return(ret); }