|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.mtinput.win7.Win7TouchInput
public class Win7TouchInput
Input source for native Windows 7 WM_TOUCH messages for single/multi-touch.
Constructor Summary | |
---|---|
Win7TouchInput(float width,
float height,
boolean sixtyFourBit)
Instantiates a new win7 native touch source. |
Method Summary | |
---|---|
void |
addTouchCursor(Windows7TouchEvent wmTouchEvent)
Adds the touch cursor. |
boolean |
isSixtyFourBit()
Checks if is sixty four bit. |
void |
registerMultiTouchEventListener(IMultiTouchEventListener listener)
Register the listener to receive multi-touch events, as defined in IMultiTouchInputListener. |
void |
registerMultiTouchEventListener(IMultiTouchEventListener listener,
int index)
Register multi touch event listener. |
void |
removeTouchCursor(Windows7TouchEvent wmTouchEvent)
Removes the touch cursor. |
void |
setClickSensitivity(long time,
float distance)
Determines whether two successive cursor add/remove events constitute a 'click'. |
void |
setSixtyFourBit(boolean sixtyFourBit)
Sets the sixty four bit. |
void |
start()
Start. |
void |
unregisterMultiTouchEventListener(IMultiTouchEventListener listener)
Stops the listener from receiving multi-touch events. |
void |
update(float tpf)
Update. |
void |
updateTouchCursor(Windows7TouchEvent wmTouchEvent)
Update touch cursor. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Win7TouchInput(float width, float height, boolean sixtyFourBit)
width
- the widthheight
- the heightsixtyFourBit
- the sixty four bitMethod Detail |
---|
public void addTouchCursor(Windows7TouchEvent wmTouchEvent)
wmTouchEvent
- the wm touch eventpublic boolean isSixtyFourBit()
public void registerMultiTouchEventListener(IMultiTouchEventListener listener)
IMultiTouchInputSource
registerMultiTouchEventListener
in interface IMultiTouchInputSource
listener
- the listenerpublic void registerMultiTouchEventListener(IMultiTouchEventListener listener, int index)
IMultiTouchInputSource
registerMultiTouchEventListener
in interface IMultiTouchInputSource
listener
- the listenerindex
- the indexpublic void removeTouchCursor(Windows7TouchEvent wmTouchEvent)
wmTouchEvent
- the wm touch eventpublic void setClickSensitivity(long time, float distance)
IMultiTouchInputSource
setClickSensitivity
in interface IMultiTouchInputSource
time
- in millisecondsdistance
- in coordinate spacepublic void setSixtyFourBit(boolean sixtyFourBit)
sixtyFourBit
- the new sixty four bitpublic void start()
public void unregisterMultiTouchEventListener(IMultiTouchEventListener listener)
IMultiTouchInputSource
unregisterMultiTouchEventListener
in interface IMultiTouchInputSource
listener
- the listenerpublic void update(float tpf) throws MultiTouchInputException
IMultiTouchInputSource
update
in interface IMultiTouchInputSource
tpf
- the tpf
MultiTouchInputException
- the multi touch input exceptionpublic void updateTouchCursor(Windows7TouchEvent wmTouchEvent)
wmTouchEvent
- the wm touch event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |