Browse Source

Support windows;

bjorn 7 years ago
parent
commit
01acf0dd46
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lovr-keyboard.lua

+ 1 - 1
lovr-keyboard.lua

@@ -1,5 +1,5 @@
 local ffi = require 'ffi'
 local ffi = require 'ffi'
-local C = ffi.C
+local C = ffi.os == 'Windows' and ffi.load('glfw3') or ffi.C
 
 
 ffi.cdef [[
 ffi.cdef [[
   typedef struct GLFWwindow GLFWwindow;
   typedef struct GLFWwindow GLFWwindow;