
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:

    The lib directory is just a few utils I pulled (and mostly stripped
    down to bare essentials) from my personal libs.  It would be quite easy
    to remove any dependancies on these files, but most notably that would
    require rewriting the argument parsing (Aparse) using something like
    getopt and it was just easier to include my libs so there you have it.

    All source files are formatted for 4-space tabs.

History:

    1.2 - Stipped libs included so anyone should be able to compile it.
            Note the size of the binary dropped by a factor of two too.

    1.1 - Updated default calibration to something reasonable.

