
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

=============================================
MouseController

MouseController monitors a mouse selected by the user, printing out changes to 
its buttons, position, and middle wheel. 

The user supplies the mouse controller's ID, which can be found by 
running MiceReporter.

MouseController consists of:
    MouseController.java
    TestMouse.java
    

=============================================
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 TestMouse <ID>
e.g.
$ run TestMouse 0
    // 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