fix broken key bindings
This commit is contained in:
@@ -48,7 +48,7 @@ namespace OpenVulkano::GLFW
|
||||
{
|
||||
remappedKey = i - 320;
|
||||
}
|
||||
else if (i >= GLFW_KEY_NUM_LOCK)
|
||||
else if (i == GLFW_KEY_NUM_LOCK)
|
||||
{
|
||||
remappedKey = 17;
|
||||
}
|
||||
|
||||
@@ -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