Remove legacy key mapping and associate devices with keys (DInput has been left behind for now, will be fixed up soon). Saving is broken, will be fixed soon.

This commit is contained in:
Henrik Rydgard committed 2013-07-06 20:45:44 +02:00
1 parent ab6133e419
commit cc58e34cf8
30 files changed
+671 -1193

No files matched your search

+11 -2
View File
@@ -542,8 +542,7 @@ void NativeDeviceLost() {
}
bool NativeIsAtTopLevel() {
// TODO
return false;
return globalUIState == UISTATE_MENU;
}
void NativeTouch(const TouchInput &touch) {
@@ -551,6 +550,16 @@ void NativeTouch(const TouchInput &touch) {
screenManager->touch(touch);
}
void NativeKey(const KeyInput &key) {
if (screenManager)
screenManager->key(key);
}
void NativeAxis(const AxisInput &key) {
if (screenManager)
screenManager->axis(key);
}
void NativeMessageReceived(const char *message, const char *value) {
// We can only have one message queued.
lock_guard lock(pendingMutex);