htv04 / wiilove

Framework for making 2D Nintendo Wii homebrew games in Lua
GNU Lesser General Public License v3.0
66 stars 8 forks source link

love.wiimote.isDown not working #13

Open LuisHCK opened 2 years ago

LuisHCK commented 2 years ago

I'm trying to retrieve the wiimote input by this way:

function love.update(dt)
    if love.wiimote.isDown(0, 'down') then
        keypressed = "down"
    end
end

but it doesn't work, I tried with all available key but none works.

This works correctly:

function love.update(dt)
   x = love.wiimote.getX(0)
end