Simple question about joystick

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Tuxion
Prole
Posts: 8
Joined: Mon Jan 08, 2018 6:31 pm

Simple question about joystick

Post by Tuxion » Mon Apr 16, 2018 11:11 pm

I want to use right bumper or the right trigger of the joystick but I don't know the exact name, I tried that:

Joystick:isGamepadDown('leftshoulder')

but it doesn't work

User avatar
Beelz
Party member
Posts: 234
Joined: Thu Sep 24, 2015 1:05 pm
Location: New York, USA
Contact:

Re: Simple question about joystick

Post by Beelz » Tue Apr 17, 2018 1:21 am

Have you made sure that Joystick:isGamepad() returned true? Does it work right if you use the gamepad callbacks(love.gamepadpressed(), etc)?

Code: Select all

if self:hasBeer() then self:drink()
else self:getBeer() end
GitHub -- Website

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests