Skip to content

Commit

Permalink
Converting simple-game-window event methods to :afters
Browse files Browse the repository at this point in the history
This ensures that methods defined on WINDOW still get called.
  • Loading branch information
zkat committed Jul 1, 2010
1 parent 76a4d1d commit 5c5b8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simple-game-engine.lisp
Expand Up @@ -7,7 +7,7 @@
((engine :initarg :engine :accessor engine)))

(macrolet ((defev (name (window-name &rest rest-of-lambda-list))
`(defmethod ,name ((,window-name simple-game-window) ,@rest-of-lambda-list)
`(defmethod ,name :after ((,window-name simple-game-window) ,@rest-of-lambda-list)
(,name (engine ,window-name) ,@rest-of-lambda-list))))
(defev on-key-down (window keycode keysym string))
(defev on-key-up (window keycode keysym string))
Expand Down

0 comments on commit 5c5b8d2

Please sign in to comment.