Add ARM detection to bspf.

Fixed a few minor warnings.
This commit is contained in:
Stephen Anthony 2019-04-05 23:37:48 -02:30
parent 66c588476e
commit 88af3c0b43
3 changed files with 7 additions and 2 deletions

View File

@ -610,4 +610,4 @@ bool PhysicalKeyboardHandler::handleControlEvent(StellaKey key, StellaMod mod, b
handled = false;
return handled;
}
}

View File

@ -75,7 +75,8 @@ class PhysicalKeyboardHandler
// Array of key events, indexed by StellaKey
Event::Type myKeyTable[KBDK_LAST][kNumModes];
// Array of mod keys, indexed by StellaKey
StellaMod myModKeyTable[KBDK_LAST][kNumModes];
// TODO - uncomment when this is ready
//StellaMod myModKeyTable[KBDK_LAST][kNumModes];
// Sometimes key combos with the Alt key become 'stuck' after the
// window changes state, and we want to ignore that event

View File

@ -111,6 +111,10 @@ namespace BSPF
static const string ARCH = "x86_64";
#elif defined(__powerpc__) || defined(__ppc__)
static const string ARCH = "ppc";
#elif defined(__arm__) || defined(__thumb__)
static const string ARCH = "arm32";
#elif defined(__aarch64__)
static const string ARCH = "arm64";
#else
static const string ARCH = "NOARCH";
#endif