Guys, are there any new examples of successful custom gamepad buttons mapping?
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.
A Bunch Of Joystick Questions
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: A Bunch Of Joystick Questions
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua
- slime
- Solid Snayke
- Posts: 3161
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: A Bunch Of Joystick Questions
Something like that is probably almost entirely in the hands of the driver for that gamepad.
Re: A Bunch Of Joystick Questions
SDL 2.0.5 brings up new GUIDs unification.
In the future It might affect our LOVE2D projects
https://github.com/gabomdq/SDL_GameCont ... issues/110
In the future It might affect our LOVE2D projects
srcslouken 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
https://github.com/gabomdq/SDL_GameCont ... issues/110
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua
- slime
- Solid Snayke
- Posts: 3161
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: A Bunch Of Joystick Questions
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.
Re: A Bunch Of Joystick Questions
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.
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.
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 5 guests