This commit is contained in:
0m.ax 2025-07-20 16:20:16 +02:00
parent af87e9d7b6
commit 6c27b1ec7b

View file

@ -8,7 +8,7 @@ import libevdev
MULTICAST_TTL = 4
def send(socket,x,y):
packet = struct.pack('<HH', int((float(x_coor)/32767.0)*1920), int((float(y_coor)/32767.0)*1080))
packet = struct.pack('<HH', x,y)
# Send the packet over UDP
sock.sendto(packet, (dest_ip, dest_port))