pablophg/min3d

Using onTouchEvent method in Min3D-Wallpaper-Fork

GoogleCodeExporter opened this issue · 2 comments

Thanks for greatest framework for android, but I have a problem. I need to use 
ACTION_MOVE in my wallpaper application, but I don't know how to add a method 
onTouchEvent to CommonRender class. 

Original issue reported on code.google.com by elbia...@gmail.com on 5 Aug 2012 at 3:54

[deleted comment]
simply, you can implement onTouch activity Event

@Override
    public boolean onTouchEvent(MotionEvent event) {
        // TODO Auto-generated method stub

        if (event.getAction() == MotionEvent.ACTION_DOWN) {
            onTouchDown(event);
            return true;
        }

        return super.onTouchEvent(event);
    }

this will allow you to get screen XY coords

Original comment by andrei.p...@gmail.com on 29 Jan 2013 at 7:02