@@ -157,21 +157,22 @@ const (
157157)
158158
159159var (
160- MaaAdbControllerCreate func (adbPath , address string , screencapMethods uint64 , inputMethods uint64 , config , agentPath string ) uintptr
161- MaaWin32ControllerCreate func (hWnd unsafe.Pointer , screencapMethods uint64 , mouseMethod , keyboardMethod uint64 ) uintptr
162- MaaCustomControllerCreate func (controller unsafe.Pointer , controllerArg uintptr ) uintptr
163- MaaControllerDestroy func (ctrl uintptr )
164- MaaControllerAddSink func (ctrl uintptr , sink MaaEventCallback , transArg uintptr ) int64
165- MaaControllerRemoveSink func (ctrl uintptr , sinkId int64 )
166- MaaControllerClearSinks func (ctrl uintptr )
167- MaaControllerSetOption func (ctrl uintptr , key MaaCtrlOption , value unsafe.Pointer , valSize uint64 ) bool
168- MaaControllerPostConnection func (ctrl uintptr ) int64
169- MaaControllerPostClick func (ctrl uintptr , x , y int32 ) int64
170- MaaControllerPostSwipe func (ctrl uintptr , x1 , y1 , x2 , y2 , duration int32 ) int64
171- MaaControllerPostClickKey func (ctrl uintptr , keycode int32 ) int64
172- MaaControllerPostInputText func (ctrl uintptr , text string ) int64
173- MaaControllerPostStartApp func (ctrl uintptr , intent string ) int64
174- MaaControllerPostStopApp func (ctrl uintptr , intent string ) int64
160+ MaaAdbControllerCreate func (adbPath , address string , screencapMethods uint64 , inputMethods uint64 , config , agentPath string ) uintptr
161+ MaaPlayCoverControllerCreate func (address , uuid string ) uintptr
162+ MaaWin32ControllerCreate func (hWnd unsafe.Pointer , screencapMethods uint64 , mouseMethod , keyboardMethod uint64 ) uintptr
163+ MaaCustomControllerCreate func (controller unsafe.Pointer , controllerArg uintptr ) uintptr
164+ MaaControllerDestroy func (ctrl uintptr )
165+ MaaControllerAddSink func (ctrl uintptr , sink MaaEventCallback , transArg uintptr ) int64
166+ MaaControllerRemoveSink func (ctrl uintptr , sinkId int64 )
167+ MaaControllerClearSinks func (ctrl uintptr )
168+ MaaControllerSetOption func (ctrl uintptr , key MaaCtrlOption , value unsafe.Pointer , valSize uint64 ) bool
169+ MaaControllerPostConnection func (ctrl uintptr ) int64
170+ MaaControllerPostClick func (ctrl uintptr , x , y int32 ) int64
171+ MaaControllerPostSwipe func (ctrl uintptr , x1 , y1 , x2 , y2 , duration int32 ) int64
172+ MaaControllerPostClickKey func (ctrl uintptr , keycode int32 ) int64
173+ MaaControllerPostInputText func (ctrl uintptr , text string ) int64
174+ MaaControllerPostStartApp func (ctrl uintptr , intent string ) int64
175+ MaaControllerPostStopApp func (ctrl uintptr , intent string ) int64
175176 // for adb controller, contact means finger id (0 for first finger, 1 for second finger, etc)
176177 // for win32 controller, contact means mouse button id (0 for left, 1 for right, 2 for middle)
177178 MaaControllerPostTouchDown func (ctrl uintptr , contact , x , y , pressure int32 ) int64
@@ -377,6 +378,7 @@ func registerFramework() {
377378 purego .RegisterLibFunc (& MaaResourceGetCustomActionList , maaFramework , "MaaResourceGetCustomActionList" )
378379 // Controller
379380 purego .RegisterLibFunc (& MaaAdbControllerCreate , maaFramework , "MaaAdbControllerCreate" )
381+ purego .RegisterLibFunc (& MaaPlayCoverControllerCreate , maaFramework , "MaaPlayCoverControllerCreate" )
380382 purego .RegisterLibFunc (& MaaWin32ControllerCreate , maaFramework , "MaaWin32ControllerCreate" )
381383 purego .RegisterLibFunc (& MaaCustomControllerCreate , maaFramework , "MaaCustomControllerCreate" )
382384 purego .RegisterLibFunc (& MaaControllerDestroy , maaFramework , "MaaControllerDestroy" )
0 commit comments