change hat mapping display

This commit is contained in:
Thomas Jentzsch 2019-08-17 06:44:17 +02:00
parent 364137d20d
commit 82c6b5544d
2 changed files with 5 additions and 9 deletions

View File

@ -147,10 +147,10 @@ string JoyMap::getDesc(const Event::Type event, const JoyMapping& mapping) const
buf << "/H" << mapping.hat;
switch (mapping.hdir)
{
case JoyHatDir::UP: buf << "/up"; break;
case JoyHatDir::DOWN: buf << "/down"; break;
case JoyHatDir::LEFT: buf << "/left"; break;
case JoyHatDir::RIGHT: buf << "/right"; break;
case JoyHatDir::UP: buf << "Y+"; break;
case JoyHatDir::DOWN: buf << "Y-"; break;
case JoyHatDir::LEFT: buf << "X-"; break;
case JoyHatDir::RIGHT: buf << "X+"; break;
default: break;
}
}

View File

@ -165,7 +165,6 @@ class Event
myValues[i] = Event::NoType;
}
/**
Tests if a given event represents continuous or analog values.
*/
@ -187,9 +186,6 @@ class Event
// Array of values associated with each event type
Int32 myValues[LastType];
// Array of keyboard key states
//bool myKeyTable[KBDK_LAST];
mutable std::mutex myMutex;
private: