Greater Rift minion life fix (#23); Mac click-to-walk and keyboard key names; older-API declaration de-duplication

This commit is contained in:
jhaizhou
2026-10-14 05:22:34 +08:00
parent d9e95c3381
commit feb2bb9fdc
22 changed files with 420 additions and 33 deletions
+9 -5
View File
@@ -43,7 +43,7 @@ Language: the first launch follows the system language (Chinese systems start in
## Keyboard ↔ gamepad
Button prompts on screen show gamepad letters. Where the screen says "A", "B", "X" or "Y", the key to press is **not** the letter of the same name on the keyboard (the keyboard's A walks left) but the one in the right-hand column:
With a keyboard, the button prompts on screen (the hint bar at the bottom, skill slots, the ends of tab rows) show the keyboard keys directly: J K U I Q E Z C = Tab and so on; press a button on a connected gamepad and they switch back to gamepad letters. The full mapping:
| What you want / gamepad button | Keyboard |
|---|---|
@@ -67,7 +67,9 @@ A gamepad works as soon as it is connected, alongside the keyboard. The menu bar
What it can do now:
- **Click a target in the world** (monster, NPC, chest, waypoint, item on the ground): the character walks over and interacts.
- **Click empty ground to walk there**: a left click on empty ground walks the character to that point, finding its way around obstacles; a click inside a wall or water walks to the nearest reachable spot.
- **Hold to keep walking**: hold the left button and the character keeps walking towards the pointer, following it as it moves. W A S D / the gamepad stick take priority: press a direction key while walking and the keyboard takes over at once.
- **Click a target in the world** (NPC, chest, waypoint, item on the ground): the character walks over and interacts. With a panel open, a click outside it only closes the panel.
- **Click the bottom row**: a skill icon = use that skill (the same as pressing the key shown under it), a potion cell = drink it, the middle button = open the inventory group of pages, the run / walk button = toggle.
- **Click the interface**: buttons, checkboxes and tabs in panels (including the in-page tabs of the skill tree), the pause menu, the settings pages, "Start" on the rift level-selection page.
- **Click a key hint at the bottom**: clicking an entry presses that key.
@@ -77,8 +79,9 @@ What it can do now:
What it cannot do yet:
- **Clicking empty ground does not walk.** Move with W A S D or a gamepad stick.
- **Key caps on screen are still gamepad letters**; translate them with the table above.
- **Clicking a monster does not attack**; attack with the skill keys (J K U I).
- Click-to-walk was verified only in the camp, on empty ground and the waypoint; complex terrain in the wild and clicking NPCs are unverified.
- Switching input device (keyboard ↔ gamepad) while the settings page or the stash is open: the prompts change only after the panel closes.
- **Long press / double click / drag / buying on items do not take the mouse.** Use the keyboard or gamepad cursor: move the cursor onto the item with W A S D and press the key shown in the bottom bar. For example, buying from a vendor: cursor onto the goods (the bottom bar shows "A Buy") → press Space (or J) → press it again in the confirmation.
- "Hold …" key hints need longer than a click, so hold the key on the keyboard; a hint with two key caps is not recognised.
- The life orb, mana orb and experience bar do nothing when clicked.
@@ -130,7 +133,8 @@ After a forced quit or a crash, the system's "reopen windows?" dialog no longer
## Known shortcomings
- The five things from the top have not been operated by a person: keyboard keys, a physical gamepad, the resource-folder dialog, ⌘Q and menu clicks, how it feels in the hand. The key mapping was written from the key-code table.
- Clicking empty ground does not walk; key caps on screen are still gamepad letters; long press / double click / drag / buying on items do not take the mouse (see "Mouse" above).
- Clicking a monster does not attack; long press / double click / drag / buying on items do not take the mouse; click-to-walk was verified only in the camp (see "Mouse" above).
- "Prompts switch back to gamepad letters when a gamepad is used" was verified by simulation; no physical gamepad has been connected.
- The free town portal on ZR + Space of a gamepad is not there.
- The quest bar on the left in rifts is not there.
- An App you build yourself has no iCloud save sync; there are no update checks and no sharing of the diagnostic log.
+9 -5
View File
@@ -43,7 +43,7 @@ DM_MAC_M3=1 dm/tools/mac_app.sh # macOS 15 – 25
## 键盘 ↔ 手柄
界面上的按键提示显示的是手柄字母。屏上写着「A」「B」「X」「Y」的地方,按的**不是**键盘上的同名字母(键盘的 A 是向左走),而是下表右边那一列:
用键盘时,屏上的按键提示(底部提示条、技能格、页签两端)直接显示键盘上的键:J K U I Q E Z C = Tab 等;接上手柄按一下,自动换回手柄字母。完整对应如下:
| 要做的事 / 手柄键 | 键盘 |
|---|---|
@@ -67,7 +67,9 @@ DM_MAC_M3=1 dm/tools/mac_app.sh # macOS 15 – 25
现在能做的:
- **点世界里的目标**(怪、NPC、箱子、传送点、地上的物品):走过去交互。
- **点空地走过去**:左键点一下空地,角色走到那一点,会自己绕开障碍;点在墙里、水里就走到能到的最近处。
- **按住一直走**:左键按住不放,角色一直朝鼠标所在的地方走,鼠标挪到哪跟到哪。W A S D / 手柄摇杆优先:走着的时候按方向键,立刻听键盘的。
- **点世界里的目标**(NPC、箱子、传送点、地上的物品):走过去交互。面板开着时点面板外只关面板。
- **点底部那一排**:技能图标 = 放那个技能(等于按它下面标的键),药水格 = 喝那格药,中间的钮 = 打开物品栏那组页面,跑 / 走钮 = 切换。
- **点界面**:面板里的按钮、勾选框、页签(含技能树页里的分页)、暂停菜单、设置页、秘境选层页的「开始」。
- **点底部的按键提示**:点哪一条,等于按那个键。
@@ -77,8 +79,9 @@ DM_MAC_M3=1 dm/tools/mac_app.sh # macOS 15 – 25
还不能的:
- **点空地不会走**。移动用 W A S D 或手柄摇杆。
- **屏上的键帽仍是手柄字母**,照上面的表换成键盘键。
- **点怪攻击没有**,攻击用技能键(J K U I)。
- 点地走只在营地验过空地与小站;野外复杂地形、点 NPC 未经验证。
- 设置页、储藏箱开着时换输入设备(键盘 ↔ 手柄),按键提示要等面板关掉才换。
- **物品的长按 / 双击 / 拖放 / 购买不认鼠标**,用键盘或手柄的光标操作:W A S D 把光标移到物品上,按底栏提示的键。例如在商人处买东西:光标移到货物上(底栏出现「A 购买」)→ 按空格(或 J)→ 确认框里再按一次。
- 「按住…」类的按键提示点一下不够长,用键盘按住;一条提示带两个键帽的不认。
- 血球、魔球、经验条点了没有反应。
@@ -130,7 +133,8 @@ DM_MAC_M3=1 dm/tools/mac_app.sh # macOS 15 – 25
## 已知不足
- 开头说的五项未经真人操作:键盘按键、实体手柄、选资源文件夹的对话框、⌘Q 与菜单点击、真人手感。键位是照键码表写的。
- 鼠标点空地不会走;屏上的键帽仍是手柄字母;物品的长按 / 双击 / 拖放 / 购买不认鼠标(见上面「鼠标」一节)。
- 鼠标点怪攻击没有;物品的长按 / 双击 / 拖放 / 购买不认鼠标;点地走只在营地验过(见上面「鼠标」一节)。
- 「接上手柄提示换回手柄字母」是模拟验的,实体手柄没接过。
- 手柄上 ZR 空格的免费回城没有。
- 秘境左侧的任务栏没有。
- 自己构建的 App 没有 iCloud 存档同步;没有更新检查和分享诊断日志。