///////////////////////////////////////////////////////
| 229 | |
| 230 | //////////////////////////////////////////////////////////// |
| 231 | std::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 | //////////////////////////////////////////////////////////// |
no outgoing calls
no test coverage detected