Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
leng-yue committed Aug 3, 2021
1 parent 52cfdd1 commit cf7ab71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scrcpy/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ def __init__(self, parent):
self.parent = parent

def keycode(self, keycode: int, action: int = const.ACTION_DOWN):
package = struct.pack(">BBIII", const.TYPE_INJECT_KEYCODE, action, keycode, 0, 0)
package = struct.pack(
">BBIII", const.TYPE_INJECT_KEYCODE, action, keycode, 0, 0
)
self.parent.control_socket.send(package)

def touch(self, x: int, y: int, action: int = const.ACTION_DOWN):
Expand Down
6 changes: 5 additions & 1 deletion scrcpy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ def deploy_server(self):
"app_process",
"/",
"com.genymobile.scrcpy.Server 1.18 info {} {} {} {} true - false true 0 false {} - - false".format(
self.max_width, self.bitrate, self.max_fps, self.lock_screen_orientation, "true" if self.stay_awake else "false"
self.max_width,
self.bitrate,
self.max_fps,
self.lock_screen_orientation,
"true" if self.stay_awake else "false",
),
],
cwd=server_root,
Expand Down

0 comments on commit cf7ab71

Please sign in to comment.