<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>触控 on PlumePHP</title><link>https://plumephp.com/tags/%E8%A7%A6%E6%8E%A7/</link><description>Recent content in 触控 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Fri, 08 May 2026 09:40:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E8%A7%A6%E6%8E%A7/index.xml" rel="self" type="application/rss+xml"/><item><title>Godot 触屏手势识别：滑动、长按和双指操作别写散在控件里</title><link>https://plumephp.com/godot-touch-gesture-recognizer-2026/</link><pubDate>Fri, 08 May 2026 09:40:00 +0800</pubDate><guid>https://plumephp.com/godot-touch-gesture-recognizer-2026/</guid><description>&lt;p&gt;移动端输入如果只靠 &lt;code&gt;_gui_input&lt;/code&gt; 和几个控件回调，很快就会变得混乱。按钮需要点击，背包需要长按，地图需要双指缩放，角色需要虚拟摇杆，列表需要滑动，战斗还要识别轻扫。每个控件自己判断手势，冲突就不可避免。我更倾向于在 Godot 项目里建立统一的 GestureRecognizer，在原始触摸事件和业务系统之间做识别、仲裁和派发。&lt;/p&gt;</description></item></channel></rss>