Changeset 1346


Ignore:
Timestamp:
May 6, 2012, 10:52:44 PM (9 years ago)
Author:
sam
Message:

input: blacklist HDAPS as a joystick, it's not really a joystick.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/platform/sdl/sdlinput.cpp

    r1342 r1346  
    5656    {
    5757        SDL_Joystick *sdlstick = SDL_JoystickOpen(i);
     58
     59        /* Blacklist HDAPS, it's not a real joystick */
     60        char const *name = SDL_JoystickName(i);
     61        if (strstr(name, "HDAPS"))
     62        {
     63            SDL_JoystickClose(sdlstick);
     64            continue;
     65        }
     66
    5867        Stick *stick = Input::CreateStick();
    5968        stick->SetAxisCount(SDL_JoystickNumAxes(sdlstick));
Note: See TracChangeset for help on using the changeset viewer.