View Javadoc

1   /*
2    * @(#)$Id: WacomTest.java 689 2009-07-22 00:10:27Z bsigner $
3    *
4    * Author       :   Michele Croci, mcroci@gmail.com
5    *
6    * Purpose      :  Test MouseUtils
7    *
8    * -----------------------------------------------------------------------
9    *
10   * Revision Information:
11   *
12   * Date             Who         Reason
13   *
14   * Jan 18, 2008     crocimi     Initial Release
15   *
16   * -----------------------------------------------------------------------
17   *
18   * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
19   *
20   * This software is the proprietary information of ETH Zurich.
21   * Use is subject to license terms.
22   * 
23   */
24  
25  
26  package org.ximtec.igesture.io.wacom;
27  
28  import org.ximtec.igesture.io.wacom.Wintab32.ORIENTATION;
29  import org.ximtec.igesture.io.wacom.Wintab32.ROTATION;
30  
31  
32  
33  
34  /**
35   * Comment
36   * @version 1.0 Jan 22, 2008
37   * @author Michele Croci, mcroci@gmail.com
38   */
39  public class WacomTest {
40  
41     /**
42      * @param args
43      */
44     public static void main(String[] args) {
45        WacomTest mt = new WacomTest();
46        MyTestClass test = mt.new MyTestClass();
47  
48        WacomUtils wUtils = new WacomUtils(test);
49        wUtils.start();
50    
51        
52        
53  
54     }
55  
56     
57     private class MyTestClass implements WacomCallback{
58        @Override
59        public void callbackFunction(int x, int y, int z, int pkstatus, int npress, int tpress,
60              long timeStamp, ORIENTATION orientation, ROTATION rotation,
61              int button) {
62              System.out.println("x: "+x+" y: "+y+" z: "+z+""+" status: "+pkstatus+" button: "+button);
63              System.out.println("Orientation: "+orientation.orTwist);
64             
65           
66        }
67        
68     }
69     
70  }
71