Simple Directmedia Layer

joystick: Fix connection type for Steam Controller and Xbox 360 dongles

+5
+4
src/joystick/hidapi/SDL_hidapi_steam.c
··· 1153 1153 joystick->naxes = SDL_GAMEPAD_AXIS_COUNT; 1154 1154 joystick->nhats = 1; 1155 1155 1156 + if (IsDongle(device->product_id)) { 1157 + joystick->connection_state = SDL_JOYSTICK_CONNECTION_WIRELESS; 1158 + } 1159 + 1156 1160 SDL_PrivateJoystickAddSensor(joystick, SDL_SENSOR_GYRO, update_rate_in_hz); 1157 1161 SDL_PrivateJoystickAddSensor(joystick, SDL_SENSOR_ACCEL, update_rate_in_hz); 1158 1162
+1
src/joystick/hidapi/SDL_hidapi_xbox360w.c
··· 178 178 joystick->nbuttons = 11; 179 179 joystick->naxes = SDL_GAMEPAD_AXIS_COUNT; 180 180 joystick->nhats = 1; 181 + joystick->connection_state = SDL_JOYSTICK_CONNECTION_WIRELESS; 181 182 182 183 return true; 183 184 }