summaryrefslogtreecommitdiff
path: root/2d/window.scm
diff options
context:
space:
mode:
Diffstat (limited to '2d/window.scm')
-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)