fix broken key bindings
This commit is contained in:
@@ -69,7 +69,7 @@ namespace OpenVulkano::Input
|
||||
for (const KeyBinding binding : action->GetKeys())
|
||||
{
|
||||
if (binding.key.GetInputDeviceType() != device->GetType()) continue;
|
||||
if (device->GetButton(binding.key)) return true;
|
||||
return device->GetButton(binding.key);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
@@ -80,7 +80,7 @@ namespace OpenVulkano::Input
|
||||
for(const InputDevice* device : devices)
|
||||
{
|
||||
if (key.GetInputDeviceType() != device->GetType()) continue;
|
||||
if (device->GetButton(key)) return true;
|
||||
return device->GetButton(key);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user