controller support and unfocused window added
This commit is contained in:
parent
768eed8787
commit
94ba18772b
4 changed files with 46 additions and 17 deletions
11
sdl.lua
Normal file
11
sdl.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
local ffi = require("ffi")
|
||||
ffi.cdef[[
|
||||
typedef enum
|
||||
{
|
||||
SDL_FALSE = 0,
|
||||
SDL_TRUE = 1
|
||||
} SDL_bool;
|
||||
SDL_bool SDL_SetHint(const char *name, const char *value);
|
||||
]]
|
||||
local sdl = ffi.os == "Windows" and ffi.load("SDL2") or ffi.C
|
||||
sdl.SDL_SetHint("SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS", "1")
|
Loading…
Add table
Add a link
Reference in a new issue