Questions tagged [input-devices]

Anything related to input devices, i.e. hardware devices (e.g. a mouse, a keyboard, a webcam, etc.) used to gather information from the outside world and converting them into a digital format suitable for processing by a machine.

Input devices are hardware devices used to gather information from the outside world. The information is then converted into a digital format suitable for processing by a machine.

The main input device types are:

  • keyboard
  • pointing device (mouse, touchscreen)
  • joystick
  • optical (digital camera, scanner)
  • audio (microphone)
83 questions
2
votes
1 answer

How to "tee" /dev/video in Linux?

How can I "tee" the output of a /dev/videox device, so that the live video stream can be consumed by two programs at the same time? I want to send live video from /dev/video1:input=1:norm=NTSC to two programs at once (mplayer and mencoder), in…
nerdfever.com
  • 1,652
  • 1
  • 20
  • 41
1
vote
1 answer

How to tell what device triggered a particular event in Delphi?

I'm wondering if there's an easy way to tell which input device triggered a particular GUI event. For example: A TButton.OnClick event gets fired. Did the user trigger it with a keyboard press (shortcut, Enter key for default button, space key for…
afrazier
  • 4,784
  • 2
  • 27
  • 30
1
vote
0 answers

How to only list audio devices using FFmpeg?

I am doing an audio recording project using FFmpeg 5.0.1. To list all the available audio input devices for the user to select and use, I used the function avdevice_list_input_sources(). My code goes like…
1
vote
2 answers

p5.js - Getting an array of all available video devices (webcams) with id

I would like to use x to output a list of all connected webcams with ID. Unfortunately, I always get the following error message (see picture). Does anyone have an idea what this could be? I am thankful for any help! Here is my code: const devices…
1
vote
1 answer

Is there a way to check for available microphones using pyaudio?

I was looking through PyAudio documentation and i found these two methods: 1: info.get('deviceCount') 2: p.get_default_input_device_info() Which returns: output 1: 3 output 2: IOError My pc currently has no microphones plugged but has 3…
1
vote
0 answers

How to use FF_CONSTANT for Force feedback for Linux?

I am not able to utilize FF_CONSTANT force effect. My try code is: struct ff_effect joy_effect_, joy_effect_2; if (iwantconstantforce) { joy_effect_.id = -1; joy_effect_.type = FF_CONSTANT; joy_effect_.direction = 0x0000; //…
Jai
  • 377
  • 2
  • 14
1
vote
2 answers

SDL2 does not see joystick, but OS does

I am using Ubuntu 18.0.4.4 LTS with a home-brew Arduino-based USB joystick attached. The OS sees the device at both /dev/input/js0 and /dev/input/event5 and jstest works with it: $ jstest /dev/input/js0 Driver version is 2.1.0. Joystick (Arduino…
Bram
  • 7,440
  • 3
  • 52
  • 94
1
vote
1 answer

Faking an input device for testing purpose

What I want to do I'm writing a daemon which listen to the input devices for keys presses and send signals via D-Bus. The main goal is to manage audio volume and screen backlight level by requesting changes or informing about changes. I use libevdev…
Damien Flament
  • 1,465
  • 15
  • 27
1
vote
0 answers

Mouse moves as expected but cannot select or click (after a recent update) [Arch Linux on Virtualbox]

In an Arch Linux VM on Virtualbox, the mouse is present and moves as expected, however it cannot select or click. It is a recent behavior after an update. According to this post, it could be related to ZAxisMapping settings (needed to be 6 7 instead…
imriss
  • 1,815
  • 4
  • 31
  • 46
1
vote
2 answers

connect to HID keyboard device as input device in android pragmatically

I have HID BLE keyboard which normally when I want to connect to it in android os environment, I go to Bluetooth page, search for it then tap on keyboard name and connect to it. now I want to know that can I write an app that automatically finds…
destrat18
  • 197
  • 2
  • 14
1
vote
1 answer

list all connected devices on windows

How can I get all connected devices using c# like in Control Panel\Hardware and Sound\Devices and Printers ?
גל רותם
  • 59
  • 1
  • 7
1
vote
1 answer

Check certain USB port to get device fd on C Linux

I'm writing a program that check every /dev/input/eventX and using ioctl I can get it capabilities and check what it is (mouse, keyboard, touch screen). Now I need to check certain USB out(port) if device connected on it, I open it and do the same…
Nick S
  • 1,299
  • 1
  • 11
  • 23
1
vote
1 answer

RawInput from different Keyboard C# .Net

I am working on a Windows Forms Application that should get data from a USB Scale. The USB scale is handled like a Keyboard. If someone puts something on the scale, the scale starts to type the weight String like a USB Keyboard. Before, I'd let the…
Sardar Agabejli
  • 423
  • 8
  • 32
1
vote
0 answers

How can I bind my own serial device with a driver?

I am currently building a device and its driver in an embedded Android. The device is basically an embedded Linux behaving like a touchscreen. The device and the embedded Android are connected with UART. (I am using Lemaker Guitar eval boards).…
GautierD
  • 83
  • 10
1
vote
2 answers

Is stdin treated as a character device in Linux?

When I say stdin, I am referring to the stream referred to by fd = 0. I am taking an OS course which covers block and character devices. It specifically said that the keyboard is a character device. However, when we were shown the read syscall, we…
Radu Szasz
  • 981
  • 1
  • 9
  • 22