From 82c6b5544deb3cfe3bd08a0836cf06959559e7a8 Mon Sep 17 00:00:00 2001 From: Thomas Jentzsch Date: Sat, 17 Aug 2019 06:44:17 +0200 Subject: [PATCH] change hat mapping display --- src/common/JoyMap.cxx | 10 +++++----- src/emucore/Event.hxx | 4 ---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/common/JoyMap.cxx b/src/common/JoyMap.cxx index 312b91d43..b0a2d081d 100644 --- a/src/common/JoyMap.cxx +++ b/src/common/JoyMap.cxx @@ -147,11 +147,11 @@ 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; - default: 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; } } diff --git a/src/emucore/Event.hxx b/src/emucore/Event.hxx index 582757da7..8683861be 100644 --- a/src/emucore/Event.hxx +++ b/src/emucore/Event.hxx @@ -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: