Remove obsolete controller handling code.
authorDavid Thompson <dthompson2@worcester.edu>
Wed, 9 Jan 2019 13:46:17 +0000 (08:46 -0500)
committerDavid Thompson <dthompson2@worcester.edu>
Wed, 9 Jan 2019 13:46:17 +0000 (08:46 -0500)
* chickadee.scm (run-game): Remove initial iteration over game
controller hash table.

chickadee.scm

index fe41f59..3066f26 100644 (file)
@@ -241,12 +241,6 @@ not being pushed at all."
           (load)
           (sdl2:load-game-controller-mappings!
            (scope-datadir "gamecontrollerdb.txt"))
-          ;; Notify about all controllers that were already connected
-          ;; when the game was launched because SDL will not create
-          ;; events for them.
-          (hash-for-each (lambda (key controller)
-                           (controller-add controller))
-                         *controllers*)
           (run-game* #:update update-sdl
                      #:render render-sdl-opengl
                      #:error error