Midi support for Entities
Showing the changes to interface/src/Application.cpp (1 of 12 files). Show all
Unified · Split
| @@ -61,6 +61,7 @@ · 60 unmodified lines | ||
| 61 | 61 | #include <AssetClient.h> |
| 62 | 62 | #include <AssetUpload.h> |
| 63 | 63 | #include <AutoUpdater.h> |
| 64 | +#include <Midi.h> | |
| 64 | 65 | #include <AudioInjectorManager.h> |
| 65 | 66 | #include <AvatarBookmarks.h> |
| 66 | 67 | #include <CursorManager.h> |
| @@ -398,6 +399,10 @@ public: · 331 unmodified lines | ||
| 398 | 399 | return true; |
| 399 | 400 | } |
| 400 | 401 | } |
| 402 | + | |
| 403 | + if (message->message == WM_DEVICECHANGE) { | |
| 404 | + Midi::USBchanged(); // re-scan the MIDI bus | |
| 405 | + } | |
| 401 | 406 | } |
| 402 | 407 | return false; |
| 403 | 408 | } |
| @@ -567,6 +572,7 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) { · 163 unmodified lines | ||
| 567 | 572 | DependencyManager::set<SceneScriptingInterface>(); |
| 568 | 573 | DependencyManager::set<OffscreenUi>(); |
| 569 | 574 | DependencyManager::set<AutoUpdater>(); |
| 575 | + DependencyManager::set<Midi>(); | |
| 570 | 576 | DependencyManager::set<PathUtils>(); |
| 571 | 577 | DependencyManager::set<InterfaceDynamicFactory>(); |
| 572 | 578 | DependencyManager::set<AudioInjectorManager>(); |