Added a small test for the mouse relative mode to the spaceshooter example
@@ -36,13 +36,15 @@ class Game {
__x = Mouse.x
__y = Mouse.y
+ Mouse.hidden = Mouse.isButtonPressed("right")
+ System.print(Mouse.isButtonPressed("right"))
+ // Mouse.relative = Keyboard.isKeyDown("r")
__state.update()
if (__state.next) {
__state = __state.next
__state.init()
}
- Mouse.hidden = Mouse.isButtonPressed("right")
}
static draw(dt) {
