Version: Unity 6.2 Alpha (6000.2)
Language : English
Autodetect plug-ins for QNX
Enable optional features for QNX

Support touch input for QNX

The Unity QNX Player supports input via touch devices. To enable this, make sure you meet the following prerequisites and operating system configuration requirements.

Prerequisites

Configure QNX touch scaling

As the QNX Unity player requires the touch coordinates to be in screen coordinates, configure the following setup in the scaling.conf file:

  1. Configure the QNX scaling.conf (QNX 7.0/QNX 7.1) file to use screen coordinates. For example, if you have a 1366x768 display, set mode:scale for the display resolution to scaling.conf: 1366x768:mode=scale.
  2. Restart the mtouch service.

Verify your setup

If you have installed the events (QNX 7.0/QNX 7.1) utility on the QNX image, you can use it to verify if the touch service is set up correctly. The reported coordinates (pos) should be in the range [(0,0), (DisplayWidth, DisplayHeight)].

If the coordinates are outside the range, check if the scaling mode in scaling.conf is correct and the touch device specific parameters in the mtouch.conf (QNX 7.0/QNX 7.1) file are matching the used device.

Additional resources


对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
Autodetect plug-ins for QNX
Enable optional features for QNX
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961