
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(623.269),c1(0.0219309),c2(-0.00010975),c3(488.648),c4(0.000145568),c5(0.0175861)

Setup:

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

        joytouch -use

    The default calibration is meaningless, so 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 run it with -nb:

        joytouch -nb 'cal=....'

    The -nb will prevent it from generating mouse clicks.  This way you
    can tap around the screen and see that it moves the cursor to the right
    place without it actually doing anything (like closing windows or
    whatever).  You can use the normal mouse buttons in conjunction with
    this if you like, and you have a working mouse, or re-run joytouch
    without the -nb flag 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!

    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.

