Simplifying engine interface #14

Merged
BirDt merged 14 commits from feature/basic-samples into master 2026-04-18 09:12:01 +08:00
Showing only changes of commit da164ae3c4 - Show all commits

View file

@ -371,7 +371,7 @@
(assert (symbol? name))
(assert (member type '(key-press)))
(set! input-actions
(cons (list name
(cons (cons name
(apply (cond
((eqv? type 'key-press) make-key-press))
data))
@ -389,9 +389,10 @@
(lambda (action)
(cond
((key-press? (cdr action))
(push-event 'input
(car action)
(cdr action)))))
(when (key-pressed? (key-press-key (cdr action)))
(push-event 'input
(car action)
(cdr action))))))
input-actions))))
;; Render queue exports