Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Emulators
virtualjaguar
virtualjaguar-joystick-identifier.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File virtualjaguar-joystick-identifier.patch of Package virtualjaguar
From 05c2e7989d2c73fcfa5e01b014ac6ee649ba3de2 Mon Sep 17 00:00:00 2001 From: Teemu Hukkanen <tjhukkan@iki.fi> Date: Thu, 3 Aug 2023 02:43:04 +0300 Subject: [PATCH 2/3] Use joystick identifier from SDL_JoystickOpen for SDL_JoystickName --- src/gui/gamepad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/gamepad.cpp b/src/gui/gamepad.cpp index a7a9498..f72cc0c 100644 --- a/src/gui/gamepad.cpp +++ b/src/gui/gamepad.cpp @@ -55,7 +55,7 @@ void Gamepad::AllocateJoysticks(void) // We need to copy the contents of this pointer, as SDL will change it // willy nilly to suit itself // padName[i] = SDL_JoystickName(i); - strncpy(padName[i], SDL_JoystickName(i), 127); + strncpy(padName[i], SDL_JoystickName(pad[i]), 127); padName[i][127] = 0; // Just in case name's length > 127 if (pad[i]) -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor