Ver código fonte

gamepad & faq (#303)

* update physics

* update input

* update

* update code sharing in getting-help.md

* Export Compliance

* update on file i/o

* pi / 4

* inputs

* forum url

* read only user

* html5 gamepad

* sdk api update

* update

* image properties

* update editor

* defold sdk update

* animation updates

* animation fix

* run as admin

* update bob

* update about AndroidX support

* software render

* linux-faq.md update

* 4.28.2021 updates

* Basis Universal format

* sound & mesh

* gamepad event mapping

* admob url

* Minor edit to building blocks intro text

* update gamepad & ios

* project settings

* libffi version

* scaling

* image compression

* update gamepads

* increase memory

* caching assets

* update 2021/10/6

* update 2021/10/16
blend-modes.md

* update 2021/11/12

* allow dynamic transforms update

* Bundle update

* update faq

* bullet & bob

* script properties update

* editor-styling

* build server url

* editor templates

* spine extension update

* Fix typo in the "optimizations" word in Chinese docs

* Update to material.md - Constants buffers

* Verify Graphics Calls

* H5 parameters

* OpenJDK downloads

* cn update corresponds to [pull 259](https://github.com/defold/doc/pull/259)

* application security

* porting guidelines

* update for 8f1651f

* cn update for 094bf6f

* cn update for 20fdfc5 & 6263317

* cn update for 7/19/2022

* title

* profiling update

* update editor.md

* update bob.md

* update shortcuts

* update fixed update note

* Update properties.md

* Update material.md

* Updates links

* Update bob help with the latest info

* camera & renderer

* Updated android keystore info zh_cn

* bundling.md release vs debug zh_cn

* update bob.md & gui-clipping.md

* contentless bundle

* consoles update

* model animation link

* gamepad & faq
COCO 2 anos atrás
pai
commit
95ee280f10
2 arquivos alterados com 23 adições e 2 exclusões
  1. 8 2
      docs/zh/manuals/input-gamepads.md
  2. 15 0
      docs/zh/shared/linux-faq.md

+ 8 - 2
docs/zh/manuals/input-gamepads.md

@@ -105,8 +105,6 @@ end
 ```
 
 ## 手柄配置文件
-在 Windows 上, 只支持 XBox 360 兼容手柄. 安装方法请见 http://www.wikihow.com/Use-Your-Xbox-360-Controller-for-Windows
-
 每种手柄分别对应一份映射文件, 可以在 *gamepads* 配置文件中设置. Defold 自带一个通用的手柄映射配置文件:
 
 ![Gamepad settings](images/input/gamepads.png){srcset="images/input/[email protected] 2x"}
@@ -148,6 +146,14 @@ end
 <iframe allow="gamepad"></iframe>
 ```
 
+
+### 标准手柄
+(自 Defold 1.4.1 版本起)
+
+如果连着的手柄被浏览器视为标准手柄, 则它会使用 [手柄配置文件](/manuals/input-gamepads/#gamepads-settings-file) (在 `/builtins` 目录下有一个标准手柄映射配置文件 `default.gamepads`) 里的 "Standard Gamepad" 映射. 所谓标准手柄是指包含个 16 按钮和 2 个摇杆的手柄, 布局类似 PlayStation 或者 Xbox 手柄 (更多详情请参考 [W3C 定义及按钮布局](https://w3c.github.io/gamepad/#dfn-standard-gamepad)). 如果连接着的手柄未被视为标准手柄 Defold 会根据硬件类型在手柄配置文件里寻找匹配的映射.
+
+## Windows 上的手柄
+在 Windows 上, 只支持 XBox 360 兼容手柄. To hook up your 360 controller to your Windows machine, [make sure it is setup correctly](http://www.wikihow.com/Use-Your-Xbox-360-Controller-for-Windows).
 ## 安卓手柄
 (更新于 Defold 1.2.183)
 

+ 15 - 0
docs/zh/shared/linux-faq.md

@@ -114,3 +114,18 @@ dmengine: error while loading shared libraries: libopenal.so.1: cannot open shar
 ```bash
 $ apt-get install libopenal-dev
 ```
+
+####  Q: 还没等我选择什么选项菜单栏就关闭了?
+
+A: 这很可能是窗口管理器 (比如 Qtile 或 i3) 造成的. 这是一个 [JavaFX 已知问题](https://bugs.openjdk.org/browse/JDK-8251240?focusedCommentId=14362084&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14362084) 解决方法其一, 设置 `GDK_DISPLAY` 环境变量为 1:¨
+
+```bash
+$ GDK_DISPLAY=1 ./Defold
+D=2
+```
+
+解决方法其二, 修改 `Defold/config` 文件在 `vmargs` 行添加 `-Djdk.gtk.version=2`:
+
+```
+vmargs = -Djdk.gtk.version=2,-Dfile.encoding=UTF-8,...
+```