diff options
| author | shuffle2 <godisgovernment@gmail.com> | 2017-06-05 20:49:02 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-05 20:49:02 -0700 |
| commit | 192fec50b9e3a98aa625684c0a6bd016bfedbcd5 (patch) | |
| tree | 842cb3abfb59fbe8f6938799b305a29475ed8df7 /Source/Core/InputCommon/ControllerInterface/Quartz | |
| parent | 9a9b0eed7202bd052df92113072ef7e46a0b2582 (diff) | |
| parent | c63925dc218aaa116328716e57af576eb39178bf (diff) | |
Merge pull request #5276 from ligfx/macosheadless
Add headless support on macOS
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Quartz')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Quartz/Quartz.mm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Quartz/Quartz.mm b/Source/Core/InputCommon/ControllerInterface/Quartz/Quartz.mm index a090b421a5..30802182a8 100644 --- a/Source/Core/InputCommon/ControllerInterface/Quartz/Quartz.mm +++ b/Source/Core/InputCommon/ControllerInterface/Quartz/Quartz.mm @@ -12,6 +12,9 @@ namespace Quartz { void PopulateDevices(void* window) { + if (!window) + return; + g_controller_interface.AddDevice(std::make_shared<KeyboardAndMouse>(window)); } |
