From 51346bd8ff8c79aa56a1af473ec1bb8f958f01db Mon Sep 17 00:00:00 2001 From: lindexi Date: Fri, 18 Oct 2024 20:59:59 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=AE=B0=E5=BD=95=E7=82=B8=E6=8E=89?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- X11/CaijawhejiJoballbarwi/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/X11/CaijawhejiJoballbarwi/Program.cs b/X11/CaijawhejiJoballbarwi/Program.cs index 2865bf14d..394175a6c 100644 --- a/X11/CaijawhejiJoballbarwi/Program.cs +++ b/X11/CaijawhejiJoballbarwi/Program.cs @@ -228,6 +228,7 @@ // }); //}); + // 注册炸掉原因是使用了 XIAllMasterDevices 而不是 XIAllDevices 会炸掉 // 以下注册炸掉 // X Error of failed request: BadValue (integer parameter out of range for operation) // Major opcode of failed request: 131 (XInputExtension) From b3756320042c41bbe251e9f5898b8cab6cc50634 Mon Sep 17 00:00:00 2001 From: lindexi Date: Mon, 21 Oct 2024 10:42:26 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- X11/CaijawhejiJoballbarwi/Program.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/X11/CaijawhejiJoballbarwi/Program.cs b/X11/CaijawhejiJoballbarwi/Program.cs index 394175a6c..3930a9478 100644 --- a/X11/CaijawhejiJoballbarwi/Program.cs +++ b/X11/CaijawhejiJoballbarwi/Program.cs @@ -201,6 +201,8 @@ XiEventType.XI_Leave, XiEventType.XI_Enter, + XiEventType.XI_DeviceChanged, + // 不能这么写,将会出现以下错误 // X Error of failed request: BadValue (integer parameter out of range for operation) // Major opcode of failed request: 131 (XInputExtension) @@ -493,6 +495,10 @@ or XiEventType.XI_TouchUpdate Draw(); } + else + { + Console.WriteLine($"xiEvent->evtype={xiEvent->evtype}"); + } } finally { @@ -500,6 +506,10 @@ or XiEventType.XI_TouchUpdate } } } + else + { + Console.WriteLine($"Event={@event.type}"); + } } void Draw()