package ga.deluded_fruitcakes_anonymous.velocityangles;

/**
 * Created by Isaac on 8/3/2016.
 */
public class Joystick {
  float centerX, centerY
  float borderHeight;
  public Joystick(float sWidth, float sHeight){
    borderHeight = sHeight;
  }
  @Override
    public boolean onTouchEvent(MotionEvent e) {
        // MotionEvent reports input details from the touch screen
        // and other input controls. In this case, you are only
        // interested in events where the touch position changed.

        float x = e.getX();
        float y = e.getY();
    if(y >= borderHeight){
        switch (e.getAction()) {
            case MotionEvent.ACTION_DOWN:
                Toast.makeText(getContext(), "Screen Touched at " + (x-centerX) + ", " + (y-centerY), Toast.LENGTH_SHORT).show();

        }}
}

@@ -232,24 +232,87 @@
 ht = sHeight
+ * 0.7;%0A    centerX = sWidth * 0.5;%0A    centerY = sHeight * 0.9
 ;%0A  %7D%0A  @Ove

Update Joystick.java