feat: flutter增加长按功能
This commit is contained in:
@@ -37,4 +37,12 @@ class ControlCommands {
|
||||
'keyCode': keyCode,
|
||||
'keyAction': action,
|
||||
});
|
||||
|
||||
/// 长按指令。坐标 x/y 为相对于屏幕的百分比(0.0 ~ 1.0)。
|
||||
/// 对应 Android 端 RemoteTouchView.createLongPressCommand。
|
||||
static String longPress(double x, double y) => jsonEncode({
|
||||
'action': 'LONG_PRESS',
|
||||
'x': x,
|
||||
'y': y,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user