diff --git a/stdlib/graphics/Window.aspl b/stdlib/graphics/Window.aspl index 376387f..b1a7a1a 100644 --- a/stdlib/graphics/Window.aspl +++ b/stdlib/graphics/Window.aspl @@ -46,7 +46,7 @@ class Window{ [public] property callback onMouseUp = callback(Point position, MouseButton button){} [public] - property callback onMouseMove = callback(Point from, float deltaX, float deltaY){} + property callback onMouseMove = callback(Point end, float deltaX, float deltaY){} [public] property callback onMouseWheel = callback(Point position, float deltaX, float deltaY){} [public] @@ -101,8 +101,8 @@ class Window{ implement("graphics.window.set_on_mouse_up", handle, callback(float x, float y, int button){ onMouseUp.(new Point(x, y), MouseButton(button)) }) - implement("graphics.window.set_on_mouse_move", handle, callback(float fromX, float fromY, float deltaX, float deltaY){ - onMouseMove.(new Point(fromX, fromY), deltaX, deltaY) + implement("graphics.window.set_on_mouse_move", handle, callback(float endX, float endY, float deltaX, float deltaY){ + onMouseMove.(new Point(endX, endY), deltaX, deltaY) }) implement("graphics.window.set_on_mouse_wheel", handle, callback(float x, float y, float deltaX, float deltaY){ onMouseWheel.(new Point(x, y), deltaX, deltaY) diff --git a/stdlib/gui/Control.aspl b/stdlib/gui/Control.aspl index 4be807e..9d8357d 100644 --- a/stdlib/gui/Control.aspl +++ b/stdlib/gui/Control.aspl @@ -58,9 +58,9 @@ class Control { return false } [public] - method onMouseMove(Point from, float deltaX, float deltaY){} + method onMouseMove(Point end, float deltaX, float deltaY){} [public] - method onMouseMoveAny(Point from, float deltaX, float deltaY) returns bool{ + method onMouseMoveAny(Point end, float deltaX, float deltaY) returns bool{ return false } [public]