From 37fad1c6a0d49c8590d95d1c18c8ea3bb26d7036 Mon Sep 17 00:00:00 2001 From: sin365 <353374337@qq.com> Date: Wed, 8 Oct 2025 01:59:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E6=8A=9B=E5=BC=83MAME=20P3?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Plugins/Mame.Core/mame/cps/Input.cs | 52 ------------------- 1 file changed, 52 deletions(-) diff --git a/AxibugEmuOnline.Client.Switch/Assets/Plugins/Mame.Core/mame/cps/Input.cs b/AxibugEmuOnline.Client.Switch/Assets/Plugins/Mame.Core/mame/cps/Input.cs index c0db5493..75b765a0 100644 --- a/AxibugEmuOnline.Client.Switch/Assets/Plugins/Mame.Core/mame/cps/Input.cs +++ b/AxibugEmuOnline.Client.Switch/Assets/Plugins/Mame.Core/mame/cps/Input.cs @@ -4,23 +4,6 @@ namespace MAME.Core { public partial class CPS { - static sbyte p3 = 0x1; - static sbyte p3count = 0x0; - - static sbyte getp3testKey() - { - sbyte val = (sbyte)((p3count * 2)); - if (val == 0) - val = 1; - UnityEngine.Debug.Log($"尝试P3键值{val}"); - return val; - } - static void AddtestCount() - { - p3count++; - UnityEngine.Debug.Log($"推进{p3count},当前准备P3键值为{getp3testKey()}"); - } - public static void loop_inputports_cps1_6b() { if (Keyboard.IsPressed(MotionKey.P1_INSERT_COIN))//if (Keyboard.IsPressed(Corekey.D5)) @@ -39,41 +22,6 @@ namespace MAME.Core { sbyte0 |= 0x02; } - - if (UnityEngine.Input.GetKeyDown(UnityEngine.KeyCode.LeftShift)) - { - AddtestCount(); - } - - if (Keyboard.IsPressed(MotionKey.P3_INSERT_COIN))//if (Keyboard.IsPressed(Corekey.D5)) - { - //sbyte3 &= (sbyte)(~((int)getp3testKey())); - sbyte0 &= ~4; - sbyte0 &= ~8; - sbyte0 &= ~16; - sbyte0 &= ~32; - sbyte0 &= ~64; - } - else - { - //sbyte3 |= (sbyte)(~((int)getp3testKey())); - - sbyte0 |= ~4; - sbyte0 |= ~8; - sbyte0 |= ~16; - sbyte0 |= ~32; - sbyte0 |= ~64; - } - - if (Keyboard.IsPressed(MotionKey.P4_INSERT_COIN))//if (Keyboard.IsPressed(Corekey.D6)) - { - sbyte0 &= ~0x08; - } - else - { - sbyte0 |= 0x08; - } - if (Keyboard.IsPressed(MotionKey.P1_GAMESTART))//if (Keyboard.IsPressed(Corekey.D1)) { sbyte0 &= ~0x10;