Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

The easiest way to find out these numbers for a device is usually to run the following command on the target device:

 

Code Block
cat /proc/bus/input/devices

and then look for a line starting with the characters "I: Bus=" that matches the touch screen. The other way to find out these numbers is to run the the following GetEvent class using OpenJFX: 

Code Block
sudo java com.sun.glass.ui.monocle.GetEvent

...

Once you have the touch screen's product ID, you can set the following properties for it:

PropertyTypeFunction
minXintthe X value returned by the touch driver on the extreme left of the display
maxXintthe X value returned by the touch driver on the extreme right of the display
minYintthe Y value returned by the touch driver on the extreme top of the display
maxYintthe Y value returned by the touch driver on the extreme bottom of the display
flipXYbooleanthe X and Y axes are swapped if this property is true

...