Skip to content

Commit 6821014

Browse files
committed
修改命名错误
1 parent c3fc363 commit 6821014

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

MainForm.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ private void button5_Click_1(object sender, EventArgs e)
424424
var dlist= this.deviceItems.Where(n => n.IsSelected).ToList();
425425

426426
foreach( var ditem in dlist) {
427-
new DeviceADB(ditem.Name).ClickSecreen(point);
427+
new DeviceADB(ditem.Name).TapScreen(point);
428428
}
429429

430430

Src/DeviceADB.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public AdbParse SendHome()
124124
var res = SendKeyEvent(ADBKey.Key.KEYCODE_HOME);
125125
return res;
126126
}
127-
public AdbParse ClickSecreen(Point point)
127+
public AdbParse TapScreen(Point point)
128128
{
129129
var res = ADB.Exec($"-s {DeviceName} shell input tap {point.X} {point.Y} ");
130130
return res;

Src/MyHotKey.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public void Deal(MainForm main, int WParam)
152152
case (int)Event.FastTap:
153153
if (device != null)
154154
{
155-
dd.ClickSecreen(main.point);
155+
dd.TapScreen(main.point);
156156
}
157157
break;
158158
}

WebAPI/Controllers/DeviceController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ public string SendSwipe(string devicename, string direct)
110110
/// <param name="y"></param>
111111
/// <returns></returns>
112112
[HttpGet]
113-
public string SendSwipe(string devicename, int x,int y)
113+
public string SendTap(string devicename, int x,int y)
114114
{
115-
var res = new DeviceADB(devicename).ClickSecreen(new Point(x, y));
115+
var res = new DeviceADB(devicename).TapScreen(new Point(x, y));
116116

117117

118118
return res.Message;

0 commit comments

Comments
 (0)