Questions tagged [uinput]

uinput is a user level input subsystem. Basically it is a linux kernel module that allows to handle the input subsystem from user land

uinput is a user level input subsystem. Basically it is a kernel module that allows to handle the input subsystem from userspace. It can be used to create and to handle input devices from an application. It creates a character device in /dev/input directory. The device is a virtual interface, it doesn't belong to a physical device.

Once the uinput module is installed (via modprobe or insmod), a character device is created, named as /dev/input/uinput (or /dev/uinput on some systems). This device represents the interface between the application and the kernel input subsystem.

52 questions
1
vote
0 answers

uinput not working in Advmame or Advmenu

I'm trying to build an arcade machine that uses the Beaglebone Black GPIO switches for a Happs controller set. I built a python script that run at startup and assigns all of the GPIOs correctly to the corresponding key in Advmenu and Advmame. The…
metroiss
  • 11
  • 4
1
vote
1 answer

Python-uinput it can't move mouse cursor

Python-uinput it can't move cursor when I run it as a script python main.py But when I run step by step with Python interactive It works fine import uinput import Tkinter as tk root = tk.Tk() screen_width = root.winfo_screenwidth() screen_height…
1
vote
1 answer

Generate keystrokes in Linux from Python3

I need to generate keystrokes in Linux (Raspbian) from Python3. Something like uinput but for Python3. I'd prefer not to use subprocess for this. Easier to install (apt-get) the better as it will be used in a guide to show others. Any ideas? Thomas
holmeswatson
  • 969
  • 3
  • 14
  • 39
1
vote
0 answers

error: src/ev.py: no such file or directory when installing uinput

I'm trying to install uinput on a raspberry pi but when I try to build it, It says that ev.py is missing, I've tried downloading it again but still nothing
Blü
  • 631
  • 2
  • 11
  • 26
1
vote
1 answer

cannot install uinput on raspberry pi

I'm trying to install uinput and found the command I need to run (pip install python-uinput) except that I get this error when I try to run it: Cannot fetch index base URL https://pypi.python.org/simple/ Could not find any downloads that satisfy the…
Blü
  • 631
  • 2
  • 11
  • 26
1
vote
1 answer

Uinput - Mouse events were not working

I was finding a problem in emulating the mouse events via uinput device event files. I could write the event with 'struct input_event' structure format for keyboard/mouse events but only key events were working fine and mouse events were not…
Santhosh
  • 637
  • 1
  • 7
  • 19
0
votes
0 answers

How do I ensure the created uinput.Device instance is always the same?

In Python3, instances for gamepad controllers can be created using python-uinput module. The code may look something like this: device = uinput.Device(list_of_events, name=name, bustype=0x06, vendor=0x2357, product=0x1, version=mode) While I forced…
Luis Masuelli
  • 12,079
  • 10
  • 49
  • 87
0
votes
1 answer

Steam not detecting python-uinput

I'm trying to make a custom input device using an Arduino and python-uinput but Steam is simply not detecting it. If I navigate to Settings/Controller/General Controller Settings/ it shows no devices. The virtual device shows up just fine in the OS…
ThatCoolCoder
  • 249
  • 3
  • 16
0
votes
1 answer

Simulate Gamepad button presses linux without uinput

I'd like to simulate gamepad button presses in linux. I'm running in an environment without the uinput kernel module loaded. Could I just send X11 Events using XTEST?
patrick_corrigan
  • 809
  • 11
  • 24
0
votes
0 answers

Using Uinput to map GPIO hat button press to raspi keystroke in command line internet radio player

Using the Pimoroni touchphat GPIO hat (https://github.com/pimoroni/touch-phat), I'm trying to map button press to keystroke on a raspberry pi using uinput, in order to control a command line internet radio program and scroll up or down a list of…
0
votes
3 answers

Count active touches on screen in android using C?

I want to count the total number of fingers touching that are present on screen at any given time. Is there any C function that can return me the value in number, if I am touching my device screen with 3 fingers, it should return 3 as the answer,…
0
votes
1 answer

uinput emulate LWIN + S under wayland/weston

I'm trying to emulate a key combination of Left Windows Key (Super) + S under wayland to perform a screenshot automatically (this key combination properly starts weston-screenshooter that saves a screenshot to the home directory, but it cannot be…
AJ Cole
  • 169
  • 2
  • 13
0
votes
0 answers

cygwin /dev/input/eventX functionality

Does anyone know if cygwin has functionality similar to /dev/input/eventX on linux? The only reference to this I could find online was this: http://polarhome.com/service/man/?qf=input-linux-evdev&tf=2&of=Cygwin&sf=7. But I can't for the life of me…
ktb92677
  • 407
  • 4
  • 16
0
votes
1 answer

linux/uinput.h missing in the 32-bit arm android ndk standalone toolchain?

My program uses the linux/uinput.h header. This header file is included in the arm64 android ndk standalone toolchain (generated with this command in the android ndk folder: python.exe ./make_standalone_toolchain.py --arch arm64 --install-dir arm64…
superl2
  • 13
  • 1
  • 5
0
votes
1 answer

Unable to Emulate Click event after mouse pointer moved in uinput subsystem

The below code is pretty straight, but I am unable to see the client event happening. However, i see the mouse pointer moving to given relative value. #include #include #include #include #include…
DrunkenMaster
  • 1,218
  • 3
  • 14
  • 28