delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/10/03/08:27:24

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: <trinity-afffb928-7dcc-4324-9a33-bc0df9a7f294-1696324830677@3c-app-gmx-bap13>
References: <trinity-afffb928-7dcc-4324-9a33-bc0df9a7f294-1696324830677 AT 3c-app-gmx-bap13>
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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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 <SDL.h>
> #include <stdio.h>
> 
> 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 <takashi DOT yano AT nifty DOT ne DOT jp>

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019