https://kotlinlang.org logo
#korge
Title
# korge
m

Makentoshe

08/14/2021, 8:21 AM
Hello, everyone! Is there a way to consume and hide a mouse cursor for proper handling of mouse move events for camera rotation in a 3D scene?
At now I'm using this way for tracking a mouse, but it is not clear to me how to hide the cursor and/or center it properly
Copy code
Korge {	
    solidRect(width, height).position(0,0).apply {
		cursor = GameWindow.Cursor.DEFAULT
		mouse {
			onMove {
				println(it.currentPosLocal)
			}
		}
	}

    scene3D {
        // ...
    }
}
d

Deactivated User

08/18/2021, 6:51 AM
I guess you want to lock the cursor. There is this issue for that IIRC: https://github.com/korlibs/korgw/issues/6
🙏 1