Skip to content

Ulydev/pollr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages