Joystick API

Hi

I haven’t been following SDL development closely, but I was wondering if
the SDL 2.0 API was set in stone yet, or if it was still subject to change.
I’m wondering, because I’m on the developer version of SDL 2.0, and am
noticing some breaking of user space programs (specifically Dolphin) due to
an API redefinition caused by commit 6690:9548c8a58103 on Nov 26th. The
function:
char* SDL_JoystickName(int index);
has been redefined to
char* SDL_JoystickName(SDL_Joystick* );

With the indexed way to get the name being changed to:
char* SDL_JoystickNameForIndex(int index);

I don’t know whether this was a purposeful change that the users of SDL are
supposed to work around, or a mistake.

Can anyone comment on this issue?

Thanks

This is a purposeful change; the game controller API got overhauled
back in November to better support hotplug. See

SDL2 is still being cooked up, and the new API hasn’t been frozen yet.
Hence why there are no point releases to download and code against.
Don’t get me wrong, writing your software to make use of SDL2 is a
fantastic idea, but you need to be prepared to support your own build
of the library, and for the (hopefully rare) times an API is extended
or replaced.On 30 January 2013 12:57, Matthew Harvey wrote:

Hi

I haven’t been following SDL development closely, but I was wondering if the
SDL 2.0 API was set in stone yet, or if it was still subject to change.
I’m wondering, because I’m on the developer version of SDL 2.0, and am
noticing some breaking of user space programs (specifically Dolphin) due to
an API redefinition caused by commit 6690:9548c8a58103 on Nov 26th. The
function:
char* SDL_JoystickName(int index);
has been redefined to
char* SDL_JoystickName(SDL_Joystick* );

With the indexed way to get the name being changed to:
char* SDL_JoystickNameForIndex(int index);

I don’t know whether this was a purposeful change that the users of SDL are
supposed to work around, or a mistake.

Can anyone comment on this issue?

Thanks


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Perfect. Thanks for the info. I just had Dolphin-emu breaking (development
version there too), and I wanted to figure out what the issue is so that it
doesn’t make either of the releases.On Thu, Jan 31, 2013 at 1:04 AM, Scott Percival wrote:

This is a purposeful change; the game controller API got overhauled
back in November to better support hotplug. See
http://hg.libsdl.org/SDL/rev/9548c8a58103

SDL2 is still being cooked up, and the new API hasn’t been frozen yet.
Hence why there are no point releases to download and code against.
Don’t get me wrong, writing your software to make use of SDL2 is a
fantastic idea, but you need to be prepared to support your own build
of the library, and for the (hopefully rare) times an API is extended
or replaced.

On 30 January 2013 12:57, Matthew Harvey <@Matthew_Harvey> wrote:

Hi

I haven’t been following SDL development closely, but I was wondering if
the
SDL 2.0 API was set in stone yet, or if it was still subject to change.
I’m wondering, because I’m on the developer version of SDL 2.0, and am
noticing some breaking of user space programs (specifically Dolphin) due
to
an API redefinition caused by commit 6690:9548c8a58103 on Nov 26th. The
function:
char* SDL_JoystickName(int index);
has been redefined to
char* SDL_JoystickName(SDL_Joystick* );

With the indexed way to get the name being changed to:
char* SDL_JoystickNameForIndex(int index);

I don’t know whether this was a purposeful change that the users of SDL
are
supposed to work around, or a mistake.

Can anyone comment on this issue?

Thanks


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org