mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Fixed broken joystick axis mappings under Linux
This commit is contained in:
parent
b4c7e4a890
commit
9d418b033f
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user