Browse Source

Merge pull request #4 from renneSampaio/patch-1

Update compatibility check to latest LÖVR API
Bjorn 4 năm trước cách đây
mục cha
commit
5983912f12
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lovr-keyboard.lua

+ 1 - 1
lovr-keyboard.lua

@@ -1,5 +1,5 @@
 local ffi = assert(type(jit) == 'table' and               -- Only run if we have LuaJIT
-  lovr.getOS() ~= 'Android' and lovr.getOS() ~= 'Web' and -- and also GLFW
+  lovr.system.getOS() ~= 'Android' and lovr.system.getOS() ~= 'Web' and -- and also GLFW
   require 'ffi', "lovr-keyboard cannot run on this platform")
 local C = ffi.os == 'Windows' and ffi.load('glfw3') or ffi.C