Skip to content

Commit

Permalink
Fix/clarify keypress logging
Browse files Browse the repository at this point in the history
Ensure that the output goes to the logging stream and clarify what's
being output.
  • Loading branch information
sdilts committed Apr 9, 2024
1 parent b0ea214 commit 40331d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lisp/main.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
(dotimes (i keysyms-len)
(let ((key (make-key (cffi:mem-aref keysyms :uint32 i) modifiers)))
(log-string :trace (lambda (s)
(print-key key)
(format s ": ~A~%"
(format s "Key Pressed: ")
(print-key key s)
(format s ": ~A"
(xkb:keysym-get-name (mahogany/keyboard::key-keysym key)))))
(handle-key-event key seat)))))

Expand Down

0 comments on commit 40331d6

Please sign in to comment.