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

View File

@ -525,7 +525,7 @@ bool JoystickImpl::open(unsigned int index)
if (m_file >= 0) if (m_file >= 0)
{ {
// Retrieve the axes mapping // Retrieve the axes mapping
ioctl(m_file, JSIOCGAXMAP, m_mapping); ioctl(m_file, JSIOCGAXMAP, m_mapping.data());
// Get info // Get info
m_identification.name = getJoystickName(index); m_identification.name = getJoystickName(index);