
Chapter NUI-9. Using Multiple Mice

Contact Address:
  Dr. Andrew Davison
  Dept. of Computer Engineering
  Prince of Songkla University
  Hat Yai, Songkhla 90112, Thailand
  E-mail: ad@fivedots.coe.psu.ac.th
  http://fivedots.coe.psu.ac.th/~ad/jg

If you use this code, please mention my name, and include a link
to the Web site.

Thanks,
  Andrew

=============================================
Multitouch

Multitouch is a graphical application which lets the user move, resize and 
rotate images with two 'finger tips'. Each finger tip is a cursor in the 
shape of a finger print, and is controlled by a different mouse 
(or a touch pad and mouse on my laptop).

Multitouch consists of:
 
  Multitouch.java, MultitouchPanel.java, 
  FingerTipController.java,
  ImagesManager.java, ImageHolder.java,
  ImageUtils.java

  images/
    - the finger tip pictures and the screen images are stored in here:
          blueFingerTip.png, redFingertip.png
        and
           cat2.png, domestic-cat.png, greeneyes.png
           old-cat-sleeping.png, SiameseCat.png

=============================================
Software/Hardware You Need

* The JInput API for Windows, available from 
  http://java.net/projects/jinput

* Two mice connected to your PC, or a touch pad and a mouse


=============================================
Compilation: 

Use the compile.bat batch file.

$ compile *.java
    // make sure you have JInput installed

compile.bat assumes the JInput library files are located
in d:\jinput\bin. Change the batch file to match where you've
placed the files.

=============================================
Execution: 

Use the run.bat batch file.

$ run Multitouch
    // make sure you have JInput installed

run.bat assumes the JInput library files are located
in d:\jinput\bin. Change the batch file to match where you've
placed the files.

---------
Last updated: 29th August 2012