From 9d418b033fe6b4cdbe8bb4a6c27852a6fa02f2c6 Mon Sep 17 00:00:00 2001 From: Alexander Weinrauch Date: Wed, 17 Jul 2024 18:20:41 +0200 Subject: [PATCH] Fixed broken joystick axis mappings under Linux --- src/SFML/Window/Unix/JoystickImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/Unix/JoystickImpl.cpp b/src/SFML/Window/Unix/JoystickImpl.cpp index f262bef9a..3582f73b5 100644 --- a/src/SFML/Window/Unix/JoystickImpl.cpp +++ b/src/SFML/Window/Unix/JoystickImpl.cpp @@ -525,7 +525,7 @@ bool JoystickImpl::open(unsigned int index) if (m_file >= 0) { // Retrieve the axes mapping - ioctl(m_file, JSIOCGAXMAP, m_mapping); + ioctl(m_file, JSIOCGAXMAP, m_mapping.data()); // Get info m_identification.name = getJoystickName(index);