Lutro - Documentation

love.input

Provides an interface to handle inputs. This is specific to lutro and doesn't exist in LÖVE.

This module is deprecated. Please use love.joystick instead.

love.input.joypad (deprecated)

Returns whether a joypad button is pressed.

pressed = love.input.joypad(port, button)

Where port starts at 1, and button is a string with one of these values:

{RETRO_DEVICE_ID_JOYPAD_B,      "b"},
{RETRO_DEVICE_ID_JOYPAD_Y,      "y"},
{RETRO_DEVICE_ID_JOYPAD_SELECT, "select"},
{RETRO_DEVICE_ID_JOYPAD_START,  "start"},
{RETRO_DEVICE_ID_JOYPAD_UP,     "up"},
{RETRO_DEVICE_ID_JOYPAD_DOWN,   "down"},
{RETRO_DEVICE_ID_JOYPAD_LEFT,   "left"},
{RETRO_DEVICE_ID_JOYPAD_RIGHT,  "right"},
{RETRO_DEVICE_ID_JOYPAD_A,      "a"},
{RETRO_DEVICE_ID_JOYPAD_X,      "x"},
{RETRO_DEVICE_ID_JOYPAD_L,      "l1"},
{RETRO_DEVICE_ID_JOYPAD_R,      "r1"},
{RETRO_DEVICE_ID_JOYPAD_L2,     "l2"},
{RETRO_DEVICE_ID_JOYPAD_R2,     "r2"},
{RETRO_DEVICE_ID_JOYPAD_L3,     "l3"},
{RETRO_DEVICE_ID_JOYPAD_R3,     "r3"},