Scene:gamepad_pressed

Called from love.gamepadpressed.

Usage

scene:gamepad_pressed(joystick, button)

Arguments

Name Type Description
joystick love.Joystick Joystick where a button was pressed.
button love.GamepadButton Button that was pressed.

Examples

local MyScene = Class("MyScene", crystal.Scene);

MyScene.gamepad_pressed = function(self, joystick, button)
  print(button);
end

This site uses Just the Docs, a documentation theme for Jekyll.