Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
--- a/lisp/racerdemo.lisp
+++ b/lisp/racerdemo.lisp
@@ -95,7 +95,7 @@
   (let ((event (sdl2:make-event)))
     (unwind-protect
          (loop while (plusp (sdl2:poll-event event)) do
-           (let ((event-type (cffi:mem-ref event 'sdl2:event-type)))
+           (let ((event-type (ignore-errors (cffi:mem-ref event 'sdl2:event-type))))
              (handle event-type event)))
       (cffi:foreign-free event))))

The most unusual hardware I have is an old Logitech G13. I also have a Logitech G633 headset but, other than that, just a mouse and keyboard.

I pulled the latest source and it works! I hope it was helpful to learn about this bug :)

Woohoo (-:

Yup, in a way it's good it popped up.

Going to pack the assets into exe next time as well. Maybe gracefully handle missing ones, too...