Fixed build on Linux

This commit is contained in:
Enrico Turri
2019-11-11 13:41:50 +01:00
parent e1cc82c2d0
commit 77df2c0d6c

View File

@@ -456,7 +456,7 @@ bool Mouse3DController::connect_device()
if (device.second.size() == 1)
{
#ifdef __linux__
hid_device* test_device = hid_open(device.first.first, device.first.second);
hid_device* test_device = hid_open(device.first.first, device.first.second, nullptr);
if (test_device != nullptr)
{
hid_close(test_device);