Fix action registration
This commit is contained in:
parent
5f95f1f527
commit
da164ae3c4
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue