Try to ignore accelerometers on linux systems
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12675 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
9d5c41f4ad
commit
1b96d33a50
@ -97,6 +97,9 @@ bool DeviceManager::initialize()
|
|||||||
{
|
{
|
||||||
core::stringc name = m_irrlicht_gamepads[id].Name.c_str();
|
core::stringc name = m_irrlicht_gamepads[id].Name.c_str();
|
||||||
|
|
||||||
|
// Some linux systems report a disk accelerometer as a gamepad, skip that
|
||||||
|
if (name.find("LIS3LV02DL") != -1) continue;
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
// On Windows, unless we use DirectInput, all gamepads are given the
|
// On Windows, unless we use DirectInput, all gamepads are given the
|
||||||
// same name ('microsoft pc-joystick driver'). This makes configuration
|
// same name ('microsoft pc-joystick driver'). This makes configuration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user