RFC : support touch messages
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- game-dev, mobile-dev
Research direction
Start with commit 9d29c482a2c98d0126cad4443d7395a7689a9da6 to inspect how sokol touch messages were imported, then read main.lua in the deepfuture repository. Determine how touch messages should be converted to mouse messages for initial single-point support; broader multi-touch behavior remains unspecified in the issue.
Written by the indexing model from the issue text.
Description
因为有了 wasm 版,iPad 上也可以运行游戏了。试试支持触摸屏消息。
https://github.com/cloudwu/soluna/commit/9d29c482a2c98d0126cad4443d7395a7689a9da6 这是第一个提交,因为不影响其它部分,就直接提到主干上了。它导入了 sokol 提供的触摸屏消息。
但是,目前只导入了第一个触摸点。触摸是多点的,其它触摸点还想想好以怎样的形式提供。单点触摸应该可以先模拟一下鼠标。
触摸屏的操作和交互和鼠标有一些区别,不完全等价。我在过去手机游戏开发中有一些经验总结,见 https://blog.codingnow.com/2022/12/interaction.html
但目前,如果只是想先让游戏跑起来,可以先把 touch 消息在 deepfuture 仓库那里的 main.lua 中,简单的转换为 mouse 消息。
由于明天我计划出去野外攀岩,大约一周回来。@yuchanns 可以简单在 deepfuture 上改改,部分支持手机平板试试。下周我可以手机处理 pr ,但不方便写代码。
- Dominant language
- C
- Stars
- 384
- Forks
- 24
- Avg merge
- 10h 11m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudwu/soluna
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenXiangShan/NEMU#1287 ·
Maintainers usually reply within 1 day
-
area: recompiler area: runtime kind: bug preview-effort: small priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day