X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6967A3858296 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1696336040; bh=naTGlnWj3qexMh8BvYGv0xUOQuJmur8GdGVY0z5EfPE=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=B1HoA7pKk6WMNbkpVvQZTHxx02L8Q1MONDXk6KGG7zX8lSKW7TfBWaOCPU5CkPFG3 oEX+UsTT0aqQ0ekRug/gjcMhX0zKvrOmTvQ8Iy3f0hVZN610ZmZiKVSbIPPaYGq+hV 0PovUcLGjwvq71HdF9YnUiZ2RDr9uVuuzT4SUF4A= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 12A6D3858D28 Date: Tue, 3 Oct 2023 21:26:57 +0900 To: cygwin AT cygwin DOT com Subject: Re: SDL2: Gamepads stopped working Message-Id: <20231003212657.572fd142ab72a4ea9ffcc5c8@nifty.ne.jp> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Takashi Yano via Cygwin Reply-To: Takashi Yano Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Tue, 3 Oct 2023 11:20:30 +0200 risingpower wrote: > Hi, > > after a cygwin update, SDL2 does not recognize my gamepads any more. > They definitely worked before: > libSDL2_2.0_0-2.0.7-1.tar.xz <- joystick worked fine (2021-10-09) > libSDL2_2.0_0-2.28.3-2.tar.xz <- SDL_NumJoysticks() is 0 (2023-09-30) > > Example: > // $ gcc -o testjoystick testjoystick.cc $(pkg-config --cflags --libs SDL2) > #include > #include > > int main(int argc, char *argv[]) { > if (!SDL_WasInit(SDL_INIT_JOYSTICK)) { > int res = SDL_Init(SDL_INIT_JOYSTICK); > if (res < 0) > printf("SDL init joystick failed: %s\n", SDL_GetError()); > } > int num_joysticks = SDL_NumJoysticks(); > printf("SDL_NumJoysticks()=%d\n", num_joysticks); > > return 0; > } This is because SDL_mmjoystick.c is removed from the source tree of upstream since 2.0.18. Now I am trying to enable SDL_dinputjoystick.c or SDL_xinputjoystick.c instead. Hopefully it will work again in 2.28.4. -- Takashi Yano -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple