示例#1
0
        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);
        }
示例#2
0
文件: Core.cs 项目: stuff2600/RAEmus
        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);
        }
示例#3
0
        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);
        }