From a461f8216e45be2b20e86952d28be151c54c86b2 Mon Sep 17 00:00:00 2001 From: Nickiel12 <35903114+Nickiel12@users.noreply.github.com> Date: Wed, 27 Mar 2024 17:32:30 -0700 Subject: [PATCH] small edits --- Server/sockets_controller.py | 8 ++++---- joystick-controller-client | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Server/sockets_controller.py b/Server/sockets_controller.py index f466aba..84fd1fd 100644 --- a/Server/sockets_controller.py +++ b/Server/sockets_controller.py @@ -51,13 +51,13 @@ async def update_from_packet(data): global axis_x, axis_y if data[0] == 'L': - axis_x = -int(data[1:]) + axis_x = -int(data[1:]) - 10 if data[0] == 'R': - axis_x = int(data[1:]) + axis_x = int(data[1:]) + 10 if data[0] == 'U': - axis_y = int(data[1:]) + axis_y = int(data[1:]) + 10 if data[0] == 'D': - axis_y = -int(data[1:]) + axis_y = -int(data[1:]) - 10 # if speed_up > 0: if axis_y > 0: diff --git a/joystick-controller-client b/joystick-controller-client index 3609b9a..f809c1d 160000 --- a/joystick-controller-client +++ b/joystick-controller-client @@ -1 +1 @@ -Subproject commit 3609b9a848c56ea0d014e4de1a009fc9cc8d5734 +Subproject commit f809c1dd283cc049d652338fb438de65abe40cfc