Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hello, sure! :D

First, you need to set up a variable to get the wiimote:

local wiimote = love.wiimote.getWiimotes()[1]

Then, to get the input, just use the following command:

wiimote:isDown()

Inside the parentheses, you should put a string with the specified button you want to check. The buttons are "up", "left", "down", "right", "a", "b", "1", "2", "+" and "-".

Example program:

local wiimote = love.wiimote.getWiimotes()[1] -- defines wiimote 1
function love.draw()
    if wiimote:isDown("a") then -- checks if A is being pressed
        love.graphics.print("A is being pressed!", 10, 10)
    end
end

Hope this helps :)