
joytouch -- touchscreen driver for a fuji P1120 running Linux kernel 2.6.

Use:
    joytouch
        -nb (means don't emulate button press events--just move cursor)
        -cal (means calibrate)
        cal=c0(493.665),c1(0.0170058),c2(4.58386e-05),c3(282.286),c4(3.10224e-05),c5(0.0101991)

Setup:

    Run the program with "-use" to see the options, or "-help" for more details.

        joytouch -use

    Run with "-nb" to test just cursor motion without button clicks (safer 'til
    you know it's going where you want):

        joytouch -nb

    You can use the normal mouse buttons in conjunction with this if you like,
    and you have a working mouse, or re-run it without the -nb flag:

        joytouch

    and it should act as a button-down wherever you first touch the screen
    and a button-up wherever you release it.  That's basically it!

Calibration:

    If the default calibration isn't adequate, you will need to calibrate it
    for your machine.  To do this, run:

        joytouch -cal

    then click on each target as it comes up, with the touch pen in
    whatever orientation you typically hold it.  There should be three.
    If you only get two, run it again.  (Sometimes it gets a false click
    when it first starts.) If everything works, it should output a
    calibration parameter string, something like 'cal=624.3,0.02,...'.
    Now, copy/paste that as a parameter to the program, and re-run it:

        joytouch -nb 'cal=....'

    Obviously if it works you'll want to put the "joytouch cal=..." into
    a script or alias so you don't have to worry about the calibration
    numbers any more.  I've provided an example script called "runjoy"
    which you can change with your calibration settings.

Possible snags:

    - If the program fails to run due to a missing library, you may need
      to install libxtst6 ("apt-get install libxtst6") or equivalent for
      your distribution.  If you run into any other missing dependancies,
      please let me know.

    - If it fails immediately because /dev/input/js0 doesn't exist, email
      me.  Don't try linking ts0 to js0 -- ts0 isn't the touchscreen.

    - If it's not responding at all during calibration and seems to have
      locked up your whole screen, don't panic--ctrl-C should quit it just
      fine.  Again, email me if this happens (it shouldn't).

Source code:

    There are two versions of the source included.  The "orig" version
    is exactly the source that generated the enclosed binary, but is linked
    against my personal libraries so will not compile elsewhere.  The "stripped"
    version is *almost* cleaned of dependancies on my libraries, except for the
    argument parser which I haven't gotten around to removing yet.  If anybody
    finishes this last step (replaces Aparse with something like getopt) please
    send a copy back.

    The source is formatted for 4-space tabs.

History:

    1.1 - Updated default calibration to something reasonable.

