Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first
Virtual Keyboard is working in commandline but not in emulationstation
rtzttt last edited by
Hey I tried to get virtual inputs working. It is writing the virtual inputs in command line but while emulationstation is started it stop working.
UDP_IP = "0.0.0.0" UDP_PORT = 25570 import os import socket import uinput import sys, inspect from evdev import UInput, InputDevice, ecodes as e sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) # UDP sock.bind((UDP_IP, UDP_PORT)) while True: data, addr = sock.recvfrom(1024) # buffer size is 1024 bytes print("received message: %s" % data) from evdev import uinput, ecodes as e with uinput.UInput() as ui: ui.write(e.EV_KEY, e.KEY_ENTER, 1) ui.syn()
import socket UDP_IP = "192.168.178.90" UDP_PORT = 25570 MESSAGE = b"Hello, World!" sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) # UDP sock.sendto(MESSAGE, (UDP_IP, UDP_PORT))
Any Ideas how to fix that?