Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TouchHelper implements MultiTouchObjectCanvas {
- Object getDraggableObjectAtPoint(PointInfo pt) {
- return this;
- }
- void getPositionAndScale(Object obj, PositionAndScale objPosAndScaleOut) {
- objPosAndScaleOut.set(tx,ty,sc);
- }
- boolean setPositionAndScale(Object obj, PositionAndScale newObjPosAndScale, PointInfo touchPoint) {
- tx = newObjPosAndScale.getXOff();
- ty = newObjPosAndScale.getYOff();
- sc = newObjPosAndScale.getScale();
- return true;
- }
- void selectObject(Object obj, PointInfo pt) {
- }
- }
Add Comment
Please, Sign In to add comment