Skip to content

Commit

Permalink
Merge commit 'b3756320042c41bbe251e9f5898b8cab6cc50634'
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Oct 21, 2024
2 parents 04469d1 + b375632 commit 6e986b9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions X11/CaijawhejiJoballbarwi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -228,6 +230,7 @@
// });
//});

// 注册炸掉原因是使用了 XIAllMasterDevices 而不是 XIAllDevices 会炸掉
// 以下注册炸掉
// X Error of failed request: BadValue (integer parameter out of range for operation)
// Major opcode of failed request: 131 (XInputExtension)
Expand Down Expand Up @@ -492,13 +495,21 @@ or XiEventType.XI_TouchUpdate

Draw();
}
else
{
Console.WriteLine($"xiEvent->evtype={xiEvent->evtype}");
}
}
finally
{

}
}
}
else
{
Console.WriteLine($"Event={@event.type}");
}
}

void Draw()
Expand Down

0 comments on commit 6e986b9

Please sign in to comment.