lovr.controllerpressed

This callback is called when a button on a Controller is pressed.

function lovr.controllerpressed(controller, button)
  -- your code here
end

Arguments

NameTypeDescription
controllerControllerThe new controller object.
buttonControllerButtonThe button that was pressed.

Returns

Nothing

See also