    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")