Skip to content

PS3 controller visible on windows 10 devices but not seen by SDL2? #9935

Open
@paulvirtuel

Description

@paulvirtuel

I can see those controllers on my Windows 10 PC "bluetooth and other devices" list:
PLAYSTATION(R)3 Controller
Xbox Series X Controller

I am calling these functions to enable the joystick/controller events:
if (SDL_Init(... | SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER | ...) != 0)
{
...
SDL_JoystickEventState(SDL_ENABLE);
SDL_GameControllerEventState(SDL_ENABLE);
}

I am processing the events SDL_JOYDEVICEADDED and only getting one device, an XBOX one controller.

The function SDL_NumJoysticks() returns 1, which, when I use the functions (SDL_JoystickOpen, SDL_JoystickName) or (SDL_JoystickNameForIndex), returns the string "Controller (Xbox One For Windows)".

I am wondering if there is something special to do for that PS3 controller?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions