A Bunch Of Joystick Questions

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.
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: A Bunch Of Joystick Questions

Post by D0NM »

Guys, are there any new examples of successful custom gamepad buttons mapping?

Image
the same gamepad connects via Bluetooth and USB at the same time...
It shows different gamepad GUIDs
and different number of buttons.

UPD: When I turn the Bluetooth gamepad off
LOVE2D API doesnt recognize its disconnection.
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
User avatar
slime
Solid Snayke
Posts: 3156
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: A Bunch Of Joystick Questions

Post by slime »

Something like that is probably almost entirely in the hands of the driver for that gamepad.
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: A Bunch Of Joystick Questions

Post by D0NM »

SDL 2.0.5 brings up new GUIDs unification.
In the future It might affect our LOVE2D projects
slouken wrote:
In SDL 2.0.5 the USB device GUIDs are standardized across platforms to the Linux format.

For example, the Windows GUID gets a 03 prefix (USB) and the VID and PID are split and the final string is removed:
341a3608000000000000504944564944
becomes
03000000341a00003608000000000000

On Mac OS X the device version has been added to the GUID and it has been split similarly:
4c05000000000000c405000000000000
becomes
030000004c050000c405000000010000
src
https://github.com/gabomdq/SDL_GameCont ... issues/110
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
User avatar
slime
Solid Snayke
Posts: 3156
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: A Bunch Of Joystick Questions

Post by slime »

part of the SDL GUID updates also adds new functions to query the vendor and device IDs of joysticks/controllers – to allow for easy identification of a Dualshock 4 controller across different operating systems so you can display accurate button prompts for it, for example. I plan to expose this in LÖVE once the new APIs are available in a released SDL version.
User avatar
D0NM
Party member
Posts: 250
Joined: Mon Feb 08, 2016 10:35 am
Location: Zabuyaki
Contact:

Re: A Bunch Of Joystick Questions

Post by D0NM »

cool.
I use this GUID DB https://github.com/gabomdq/SDL_GameControllerDB
I\ve added 4 GUIDs there . But they are missing as MacOS/Linux ones.
So the SDL update should resolve such things.

Offtopic: Ah.. I still have some regression with shaders on 0.10.2. Gotta prepare tests and upload it.
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
:joker: LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua :joker:
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 3 guests