MCPcopy Create free account
hub / github.com/SFML/SFML / getMotionRanges

Method getMotionRanges

src/SFML/Window/Android/JniHelper.cpp:231–241  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

229
230////////////////////////////////////////////////////////////
231std::optional<JniList<JniMotionRange, JniMotionRangeClass>> JniInputDevice::getMotionRanges() const
232{
233 auto cls = JniListClass::findClass(m_env);
234 if (!cls)
235 return std::nullopt;
236
237 if (jobject list = m_env.CallObjectMethod(m_inputDevice, m_getMotionRangesMethod))
238 return cls->makeFromJava<JniMotionRange, JniMotionRangeClass>(list);
239
240 return std::nullopt;
241}
242
243
244////////////////////////////////////////////////////////////

Callers 1

getCapabilitiesFromJniFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected