Support touch input for QNX
Support input from touch devices in the QNX Player.
Read time 1 minuteLast updated 13 days ago
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
- QNX Image has the required touch libraries and utilities installed.
- Touch configuration is set up for touch devices (QNX 7.0 doc / QNX 7.1 doc).
- (QNX 7.0 doc / QNX 7.1 doc) service is running.
mtouch
Configure QNX touch scaling
As the QNX Unity player requires the touch coordinates to be in screen coordinates, configure the following setup in the file:
scaling.conf- Configure the QNX (QNX 7.0/QNX 7.1) file to use screen coordinates. For example, if you have a
scaling.confdisplay, set1366x768for the display resolution tomode:scale.scaling.conf: 1366x768:mode=scale - Restart the service.
mtouch
Verify your setup
If you have installed the (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 () should be in the range .
eventspos[(0,0), (DisplayWidth, DisplayHeight)]If the coordinates are outside the range, check if the scaling mode in is correct and the touch device specific parameters in the (QNX 7.0/QNX 7.1) file are matching the used device.
scaling.confmtouch.conf