ToyGraphics v0.8.6.5 supports new keyboard mode allowing you to detect not only when the user pressed a key but also when they released it.
You can read ToyGraphics guide and look at the demonstrations:
https://github.com/anysolo/toyGraphics-demos/blob/master/src/main/kotlin/demos/animation2.kt
https://github.com/anysolo/toyGraphics-demos/blob/master/src/main/kotlin/demos/keyboard4.kt
0 Comments