Skip to content

Commit

Permalink
[ WTF ] Fix an unknown bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Dec 4, 2017
1 parent 7eb751d commit 0e498b4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/org/frice/GameFX.kt
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,17 @@ open class GameFX @JvmOverloads constructor(
this.stage = stage
scene = Scene(root, width.toDouble(), height.toDouble())
isResizable = false
canvas.setOnMouseClicked {
scene.setOnMouseClicked {
mouse(fxMouse(it, MOUSE_CLICKED))
onMouse(fxMouse(it, MOUSE_CLICKED))
}
canvas.setOnMouseEntered { onMouse(fxMouse(it, MOUSE_ENTERED)) }
canvas.setOnMouseExited { onMouse(fxMouse(it, MOUSE_EXITED)) }
canvas.setOnMousePressed {
scene.setOnMouseEntered { onMouse(fxMouse(it, MOUSE_ENTERED)) }
scene.setOnMouseExited { onMouse(fxMouse(it, MOUSE_EXITED)) }
scene.setOnMousePressed {
mouse(fxMouse(it, MOUSE_PRESSED))
onMouse(fxMouse(it, MOUSE_PRESSED))
}
canvas.setOnMouseReleased {
scene.setOnMouseReleased {
mouse(fxMouse(it, MOUSE_RELEASED))
onMouse(fxMouse(it, MOUSE_RELEASED))
}
Expand Down

0 comments on commit 0e498b4

Please sign in to comment.