love.joystick (Tiếng Việt)

Cung cấp giao diện cho thiết bị tay bấm của người chơi.

Hàm

love.joystick.close Closes a joystick.
love.joystick.getAxes Returns the position of each axis.
love.joystick.getAxis Returns the direction of the axis.
love.joystick.getBall Returns the change in ball position.
love.joystick.getHat Returns the direction of a hat.
love.joystick.getName Returns the name of a joystick.
love.joystick.getNumAxes Returns the number of axes on the joystick.
love.joystick.getNumBalls Returns the number of balls on the joystick.
love.joystick.getNumButtons Returns the number of buttons on the joystick.
love.joystick.getNumHats Returns the number of hats on the joystick.
love.joystick.getNumJoysticks Returns how many joysticks are available.
love.joystick.isDown Checks if a button on a joystick is pressed.
love.joystick.isOpen Checks if the joystick is open.
love.joystick.open Opens up a joystick to be used.

Kiểu liệt kê

JoystickConstant Joystick hat positions.

Xem thêm


Ngôn ngữ khác

Personal tools