summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2013-06-25 19:48:50 -0400
committerDavid Thompson <dthompson2@worcester.edu>2013-06-25 19:48:50 -0400
commit71b22c485a866ee26a3cb74c4afca878b66055bb (patch)
tree4a579229e85358da35a5902c2dc7d87f827217d8
parentd613b5b0b9e29492865ef7861c2eb1cd9d8eea1a (diff)
Enable unicode characters in SDL.
-rw-r--r--2d/window.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/2d/window.scm b/2d/window.scm
index 5231efc..5675910 100644
--- a/2d/window.scm
+++ b/2d/window.scm
@@ -30,8 +30,10 @@
(define* (open-window width height #:optional (depth 24))
"Creates the game window with the specified dimensions and
initializes OpenGL state."
- ;; Open SDL window in OpenGL mode.
(SDL:init '(SDL_INIT_VIDEO))
+ ;; Enable unicode key events
+ (SDL:enable-unicode #t)
+ ;; Open SDL window in OpenGL mode.
(SDL:set-video-mode width height 24 '(SDL_OPENGL))
;; Initialize OpenGL orthographic view
(gl-viewport 0 0 width height)