Ulydev / pollr

LÖVR input polling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pollr

LÖVR input polling

Usage

Load the library, update it in lovr.update, and define the pollr.buttonpressed and pollr.buttonreleased callbacks as needed.

Example (main.lua):

local pollr = require "pollr"

function lovr.update(dt)
    pollr.update()
end

function pollr.buttonpressed(device, button)
    -- button pressed
end

function pollr.buttonreleased(device, button)
    -- button released
end

About

LÖVR input polling

License:MIT License


Languages

Language:Lua 100.0%