MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / findValidTouchDevice

Function findValidTouchDevice

TactilityC/Source/tt_hal_touch.cpp:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10};
11
12static std::shared_ptr<tt::hal::touch::TouchDevice> findValidTouchDevice(tt::hal::Device::Id id) {
13 auto device = tt::hal::findDevice(id);
14 if (device == nullptr || device->getType() != tt::hal::Device::Type::Touch) {
15 return nullptr;
16 }
17 return std::reinterpret_pointer_cast<tt::hal::touch::TouchDevice>(device);
18}
19
20extern "C" {
21

Callers 2

Calls 2

findDeviceFunction · 0.85
getTypeMethod · 0.45

Tested by

no test coverage detected