CS
public override void _GuiInput(InputEvent @event) {
	if (@event is not InputEventMouse @mouse) return;
	// 悬浮
	// @mouse...
	if (!(@event is InputEventMouseButton @button && @button.IsPressed())) return;
	// 按键事件
	// @button...

: Cheyne Xie

: https://chaim.eu.org/posts/b21c8737/

: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.