1
0
mirror of https://github.com/SFML/SFML.git synced 2025-03-14 01:40:05 +08:00

Fixed broken joystick axis mappings under Linux

This commit is contained in:
Alexander Weinrauch 2024-07-17 18:20:41 +02:00 committed by Chris Thrasher
parent b4c7e4a890
commit 9d418b033f

@ -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);