Bump to OPENRNDR 0.3.45-rc.6

This commit is contained in:
Edwin Jakobs
2020-12-25 09:13:50 +01:00
parent 0b2d8991db
commit d39e1d0783
8 changed files with 175 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
import org.openrndr.CursorType
import org.openrndr.application
fun main() {
application {
program {
keyboard.character.listen {
if (it.character == 'c') {
mouse.cursorVisible = !mouse.cursorVisible
}
}
extend {
if (mouse.position.x < width/2.0) {
mouse.cursorType = CursorType.ARROW_CURSOR
} else {
mouse.cursorType = CursorType.HAND_CURSOR
}
}
}
}
}