public class WacomReader extends org.sigtec.input.AbstractInputDevice implements ButtonDeviceEventListener, WacomCallback
| Constructor and Description |
|---|
WacomReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
addButtonDeviceEventListener(ButtonDeviceHandler listener)
Adds a listener to the button device.
|
void |
callbackFunction(int x,
int y,
int z,
int pkstatus,
int npress,
int tpress,
long timeStamp,
Wintab32.ORIENTATION orientation,
Wintab32.ROTATION rotation,
int button) |
static List<WacomReader> |
createTablet()
Creates a list of tablet readers.
|
void |
init()
Initialises the tablet reader and starts a new thread polling the tablet.
|
void |
removeButtonDeviceEventListener(ButtonDeviceHandler listener)
Removes a listener from the button device.
|
public void init()
public void callbackFunction(int x,
int y,
int z,
int pkstatus,
int npress,
int tpress,
long timeStamp,
Wintab32.ORIENTATION orientation,
Wintab32.ROTATION rotation,
int button)
callbackFunction in interface WacomCallbackpublic static List<WacomReader> createTablet()
public void addButtonDeviceEventListener(ButtonDeviceHandler listener)
ButtonDeviceEventListeneraddButtonDeviceEventListener in interface ButtonDeviceEventListenerlistener - the listener to be added.public void removeButtonDeviceEventListener(ButtonDeviceHandler listener)
ButtonDeviceEventListenerremoveButtonDeviceEventListener in interface ButtonDeviceEventListenerlistener - the listener to be removed.Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.