M30 C1C2C3和五维按键自定义设置成功但是没有生效,怎样设置才能生效或者是否需要额外实现具体功能?

Completed

Comments

1 comment

  • DJI Developer Support
    需要对对应的按键KEY进行监听,然后在回调中实现自定义逻辑。以C1为例,要监听的是KeyCustomButton1Down,使用KeyManager.getInstance().listen方法。具体可以参考这段代码: KeyManager.getInstance().listen(KeyTools.createKey(RemoteControllerKey.KeyCustomButton1Down),this, object:CommonCallbacks.KeyListener{ override fun onValueChange(oldValue: Boolean?, newValue: Boolean?) { TODO("Not yet implemented") }})
    0
    Comment actions Permalink

Please sign in to leave a comment.