implement ray casting events

This commit is contained in:
ohyzha
2024-11-04 18:22:40 +02:00
parent 4956884d5f
commit 7febb370a8
9 changed files with 176 additions and 5 deletions

View File

@@ -85,6 +85,18 @@ namespace OpenVulkano::Input
return false;
}
InputDevice* InputManager::GetDevice(InputDeviceType type) const
{
for (InputDevice* device: devices)
{
if (device->GetType() == type && type != InputDeviceType::UNKNOWN)
{
return device;
}
}
return nullptr;
}
void InputManager::Tick()
{
for(InputDevice* device : devices)