feat: flutter增加长按功能
This commit is contained in:
@@ -202,6 +202,8 @@ class _ControllerHomeState extends State<ControllerHome> {
|
||||
ControlCommands.swipe(x1, y1, x2, y2, d)),
|
||||
onKey: (k, a) => _controller
|
||||
?.sendControlCommand(ControlCommands.key(k, a)),
|
||||
onLongPress: (x, y) => _controller
|
||||
?.sendControlCommand(ControlCommands.longPress(x, y)),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user