doodle-tutorials
doodle-tutorials copied to clipboard
Backwards carousel example.
keyChanged += pressed {
when (it.code) {
ArrowLeft -> next () // Move Carousel forward one
ArrowRight -> previous() // Move Carousel back one
}
}
this is actually backwards. You would think Right goes next and left goes previous
this code is actually so readable a non-coder friend spotted while I was just showing an example 😆
That's a fair point on the direction. And glad to hear the code is readable. That's a key goal for Doodle overall.
Hope you're finding it useful and are able to build cool stuff with it.