Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 567 | chris | 1 | package com.gebauz.PonPonChun; |
| 2 | |||
| 3 | import com.gebauz.PonPonChun.Win7TouchInput.TouchEvent; |
||
| 4 | |||
| 5 | |||
| 6 | public class Win7MultitouchHandler |
||
| 7 | { |
||
| 8 | public static class WMTouchMessage |
||
| 9 | { |
||
| 10 | |||
| 11 | } |
||
| 12 | |||
| 13 | public Win7MultitouchHandler() |
||
| 14 | { |
||
| 15 | |||
| 16 | } |
||
| 17 | |||
| 18 | public void onTouch(WMTouchMessage msg) |
||
| 19 | { |
||
| 20 | |||
| 21 | } |
||
| 22 | |||
| 23 | private void postTouchEvent (Win7TouchInput input, int type, int x, int y, int pointer, long timeStamp) { |
||
| 24 | // long timeStamp = System.nanoTime(); |
||
| 25 | TouchEvent event = input.usedTouchEvents.obtain(); |
||
| 26 | event.timeStamp = timeStamp; |
||
| 27 | event.pointer = pointer; |
||
| 28 | event.x = x; |
||
| 29 | event.y = y; |
||
| 30 | event.type = type; |
||
| 31 | input.touchEvents.add(event); |
||
| 32 | } |
||
| 33 | |||
| 34 | } |