MCPcopy Create free account
hub / github.com/Prograda/Skybolt / getFirstKeyboard

Function getFirstKeyboard

src/Skybolt/SkyboltEngine/CameraInputSystem.cpp:56–60  ·  view source on GitHub ↗

@returns first keyboard, or null if not found

Source from the content-addressed store, hash-verified

54
55//! @returns first keyboard, or null if not found
56static InputDevicePtr getFirstKeyboard(const skybolt::InputPlatform& platform)
57{
58 auto keyboards = platform.getInputDevicesOfType(InputDeviceTypeKeyboard);
59 return keyboards.empty() ? nullptr : keyboards.front();
60}
61
62void CameraInputSystem::advanceWallTime(sim::SecondsD newTime, sim::SecondsD dt)
63{

Callers 1

generateCameraInputMethod · 0.85

Calls 1

getInputDevicesOfTypeMethod · 0.45

Tested by

no test coverage detected