Maa Framework (main) v2.2.0-beta.3
A automation black-box testing framework based on image recognition.
Loading...
Searching...
No Matches
MaaCustomController.h
Go to the documentation of this file.
1
10// IWYU pragma: private, include <MaaFramework/MaaAPI.h>
11
12#pragma once
13
14#include "../MaaDef.h"
15#include "../MaaPort.h"
16
17#ifdef __cplusplus
18extern "C"
19{
20#endif
21
32 {
33 MaaBool (*connect)(void* trans_arg);
34
36 MaaBool (*request_uuid)(void* trans_arg, /* out */ MaaStringBuffer* buffer);
37
38 MaaBool (*start_app)(const char* intent, void* trans_arg);
39 MaaBool (*stop_app)(const char* intent, void* trans_arg);
40
42 MaaBool (*screencap)(void* trans_arg, /* out */ MaaImageBuffer* buffer);
43
44 MaaBool (*click)(int32_t x, int32_t y, void* trans_arg);
45
46 MaaBool (*swipe)(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t duration, void* trans_arg);
47
48 MaaBool (*touch_down)(int32_t contact, int32_t x, int32_t y, int32_t pressure, void* trans_arg);
49
50 MaaBool (*touch_move)(int32_t contact, int32_t x, int32_t y, int32_t pressure, void* trans_arg);
51
52 MaaBool (*touch_up)(int32_t contact, void* trans_arg);
53
54 MaaBool (*press_key)(int32_t keycode, void* trans_arg);
55
56 MaaBool (*input_text)(const char* text, void* trans_arg);
57 };
58
59#ifdef __cplusplus
60}
61#endif
struct MaaImageBuffer MaaImageBuffer
Definition MaaDef.h:31
uint8_t MaaBool
Definition MaaDef.h:18
struct MaaStringBuffer MaaStringBuffer
Definition MaaDef.h:30
The custom controller API.
Definition MaaCustomController.h:32
MaaBool(* screencap)(void *trans_arg, MaaImageBuffer *buffer)
Write result to buffer.
Definition MaaCustomController.h:42
MaaBool(* touch_up)(int32_t contact, void *trans_arg)
Definition MaaCustomController.h:52
MaaBool(* press_key)(int32_t keycode, void *trans_arg)
Definition MaaCustomController.h:54
MaaBool(* stop_app)(const char *intent, void *trans_arg)
Definition MaaCustomController.h:39
MaaBool(* connect)(void *trans_arg)
Definition MaaCustomController.h:33
MaaBool(* swipe)(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t duration, void *trans_arg)
Definition MaaCustomController.h:46
MaaBool(* touch_down)(int32_t contact, int32_t x, int32_t y, int32_t pressure, void *trans_arg)
Definition MaaCustomController.h:48
MaaBool(* start_app)(const char *intent, void *trans_arg)
Definition MaaCustomController.h:38
MaaBool(* click)(int32_t x, int32_t y, void *trans_arg)
Definition MaaCustomController.h:44
MaaBool(* touch_move)(int32_t contact, int32_t x, int32_t y, int32_t pressure, void *trans_arg)
Definition MaaCustomController.h:50
MaaBool(* input_text)(const char *text, void *trans_arg)
Definition MaaCustomController.h:56
MaaBool(* request_uuid)(void *trans_arg, MaaStringBuffer *buffer)
Write result to buffer.
Definition MaaCustomController.h:36