aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Low Battery Yup d/Mouse.h1
-rw-r--r--Low Battery Yup d/Mouse.m20
2 files changed, 7 insertions, 14 deletions
diff --git a/Low Battery Yup d/Mouse.h b/Low Battery Yup d/Mouse.h
index d34e715..fbcd43a 100644
--- a/Low Battery Yup d/Mouse.h
+++ b/Low Battery Yup d/Mouse.h
@@ -13,7 +13,6 @@
CGPoint _cursor_position;
}
-- (CGPoint)centerPoint;
- (void)moveToPoint:(CGPoint)point;
- (void)moveToCenter;
- (void)click;
diff --git a/Low Battery Yup d/Mouse.m b/Low Battery Yup d/Mouse.m
index 91ddce4..bd17e44 100644
--- a/Low Battery Yup d/Mouse.m
+++ b/Low Battery Yup d/Mouse.m
@@ -20,7 +20,13 @@
return self;
}
-- (CGPoint)centerPoint
+- (void)moveToPoint:(CGPoint)point
+{
+ _cursor_position = point;
+ CGDisplayMoveCursorToPoint(_current_display, point);
+}
+
+- (void)moveToCenter
{
CGPoint point;
@@ -30,18 +36,6 @@
point.x = width / 2;
point.y = height / 2;
- return point;
-}
-
-- (void)moveToPoint:(CGPoint)point
-{
- _cursor_position = point;
- CGDisplayMoveCursorToPoint(_current_display, point);
-}
-
-- (void)moveToCenter
-{
- CGPoint point = [self centerPoint];
[self moveToPoint:point];
}