On Sep 12, 2012, at 1:31 PM, iQue <max.nielse...@gmail.com> wrote:

> Alright, so I change the previous code to this:
> 
>             int imgCenterX = initx - joystick.get_joystickBg().getWidth()/2 - 
> 50;
>             int imgCenterY = inity - joystick.get_joystickBg().getHeight()/2 
> - 50;
> 
> atleast now it dosnt change its pos to 0,0, now it just gets stuck 0,x 
> somewhere, so this code didnt work either. Might help to now that 
> touchinPoint is set through event.getX() and event.getY, but you probably 
> understood that. 
> I've had this problem for over 2 weeks, so if there is anything I can do to 
> make it easier for you to help me please let me know. 
> 

How are you positioning your joystick image, is it an ImageView or are you 
drawing it to larger Canvas by yourself? Also from where are you observing 
MotionEvents? It would help to know to which component (screen or ImageView) 
MotionEvents and image position are relative to. 

--
H

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to