uk.org.pjt.jwintab
Class Jwintab

java.lang.Object
  extended by uk.org.pjt.jwintab.Jwintab

public class Jwintab
extends java.lang.Object

Java interface to Wintab

Version:
$Id: Jwintab.java,v 1.1 2000/01/12 12:31:34 rekimoto Exp rekimoto
Author:
rekimoto Log: 1.29.2000 rekimoto: add pressure parameter 1.8.2000 rekimoto: initial creation Modified by Phil Tuddenham to have a flush argument. Other modifications too - see the C code.

Method Summary
static int close()
          call this before closing the application, otherwise tablet does not work.
static int getPacket(int[] val, int flush)
          val[0..3] = {x, y, buttons, status} if flush then we flush any other queued packets
static int getVersion()
          returns current version number
static int open()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVersion

public static int getVersion()
returns current version number


open

public static int open()

close

public static int close()
call this before closing the application, otherwise tablet does not work.


getPacket

public static int getPacket(int[] val,
                            int flush)
val[0..3] = {x, y, buttons, status} if flush then we flush any other queued packets