Design & develop keyboard input API for Ludus #45
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: twc/ludus#45
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Model this after p5's strategy.
We'll have three functions that are all
(:keyword) -> :bool
:key_down?
,key_pressed?
, andkey_released?
.This should be easy enough!
This is the correct design!
Done: we actually only have
key_down?
: the rest of what we need for now can be done with sleep timers: in place of akey_pressed?
function, which would only returntrue
once per io tick, we can devise a dead simple timer that just checks to see if a key is down at an interval. Cute!