QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Two cursors |
Ref. No. |
QNX.000009794 |
Category(ies) |
Development |
Issue |
We have been able to configure our Photon application to make use of a Colorgraphic Dual screen board driving two touch screens.
Now, we would like to be able to have a mouse pointer assigned to each screen. We have a touch screen driver that is loaded for each screen. This driver will limit the mouse movements to the screen that is being touched.
However there is only one mouse pointer and it moves from screen to screen depending on which was last touched.
Is there some way of having a mouse pointer allocated to each touch screen, or driver?
|
Solution |
A graphics driver Pg.* has a -G option to specify its input group. An input driver also has a -g option to specify its input group.
Attach your new device to the second driver with a different input group (call them groups 1,2,3 etc.)
e.g. Pg.Chipsdc -G2 blah x09x09Input -g2 msoft -d /dev/ser1 blah
A photon event injected also has an input group structure member. NOTE: specify your group before you inject the event. |
|