implement ray casting events
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user