Browse Source

Merge pull request #4 from renneSampaio/patch-1

Update compatibility check to latest LÖVR API
Bjorn 4 years ago
parent
commit
5983912f12
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 = assert(type(jit) == 'table' and               -- Only run if we have LuaJIT
 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")
   require 'ffi', "lovr-keyboard cannot run on this platform")
 local C = ffi.os == 'Windows' and ffi.load('glfw3') or ffi.C
 local C = ffi.os == 'Windows' and ffi.load('glfw3') or ffi.C