package ga.deluded_fruitcakes_anonymous.velocityangles;

/**
 * Created by Isaac on 8/3/2016.
 */
public class Square {
  float centerX, centerY
  float borderHeight = 300;
  @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();

        }}
}

@@ -108,14 +108,16 @@
 ass 
-Square
+Joystick
  %7B%0A 
@@ -164,15 +164,89 @@
 ight
- = 300;
+;%0A  public Joystick(float sWidth, float sHeight)%7B%0A    borderHeight = sHeight;%0A  %7D
 %0A  @

Update Joystick.java