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
0
votes
1 answer

Convert ABS_X and ABS_Y into meaningful values

I am new to mapping a gaming controller and I am attempting to make sense of the ABX_X and ABS_Y values that return from the joystick. My goal is to take those values and turn them into "move forward", "move back", "turn" etc. I cannot seem to…
mornindew
  • 1,993
  • 6
  • 32
  • 54
0
votes
1 answer

How to check if keyboard is connected or or not and use it if it is connected during runtime?

So I have a QT project in which I want to check if a keyboard is connected. In case it's not connected I want to be able to still use it if it is connected during the program is running. I looked around and found a few libraries that might be…
bluejambo
  • 221
  • 1
  • 11
0
votes
0 answers

How to get text from a keyboard in embedded linux without decoding every key event?

Right now I'm reading directly from /dev/input/eventX. Is there some library or api that would convert the byte stream for me? Below is the code I'm running, sample input and output. int main (void) { struct input_event ev; int fd, rd; …
willpnw
  • 755
  • 1
  • 6
  • 23
0
votes
1 answer

Blocking a specific input device in Xorg apps, using xcb_wait_for_event only

There is a bug in Qt in which multiple touch screens causes Qt to be in an inconsistent state. More about the issue here. As a short-term patch, I'd to use event filters (which Qt provides for xcb events) to prevent multiple devices from being…
Paul Knopf
  • 9,568
  • 23
  • 77
  • 142
0
votes
1 answer

How to Check or match InputDevice deviceid and UsbDevice deviceid in android?

I am getting all Attached Device List.. with ID UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE); HashMap deviceList = manager.getDeviceList(); Iterator deviceIterator =…
Dilavar Malek
  • 1,157
  • 11
  • 18
0
votes
1 answer

Substring when inserting data from magnetic scanner to MS Access input field

I working on MS Access application to store customers data. All data are stored in SQL DB. One of input field is used to store ID number of card with magnetic strip. Instead of typing long number I purchased usb magnetic scannert. Scanner works but…
0
votes
0 answers

How would the linux kernel find all IRQs registered to mice?

I am new to kernel hacking and I am wanting to know if there is a way to find all IRQs that HID mice drivers have registered with the kernel. Edit** I need to know how find the correct irq given only the possible input_values. The other question…
0
votes
0 answers

Accessing 2 identical scanners from c#

I have a USB scanner which I connect and use through a DLL provided by the manufacturer. these are the functions I use to access it: [DllImport(".\\lib\\HsId600s.dll", SetLastError = true, CallingConvention = CallingConvention.Cdecl)] public…
Ben Quan
  • 773
  • 11
  • 25
0
votes
1 answer

Identifying a particular function of a multifunction input device using evdev

I have some Python code that interacts with a wireless USB numeric keypad. I'd like to be able to discover the device by name, but shows up as multiple input devices. In /dev/input/by-id: # ls -l /dev/input/by-id total 0 lrwxrwxrwx 1 root root 9…
larsks
  • 277,717
  • 41
  • 399
  • 399
0
votes
0 answers

Suppress USB device for use only in program

I want to set up a driver of sorts for a USB device - written in C++ - in order to have more control over how its input is handled. The problem is that it has a default function that I don't want, and a different program also manages its input when…
FunnyB.
  • 9
  • 1
0
votes
1 answer

difference between serial event value and serial port value

i am using jssc to read values from serial ports.once i write to the serial port the following callback is getting called . within that callback i can get values from the event and from serial port itself both contains different values. i want to…
Priyamal
  • 2,919
  • 2
  • 25
  • 52
0
votes
1 answer

reading infrared remote control from Nativescript

I would like to ask you, if it's possible to read the infrared remote control signal from an APP programmed in Nativescript, and how. Thank you.
0
votes
1 answer

TypeError: 'int' object does not support item assignment, In threads

I have the following 2 modules: First Keyboard.py: import USB,evdev,threading,sys global codigo codigo = [1] class Teclado: def __init__(self,port): self.puerto = USB.usb(port) def iniciar_teclado(self): p =…
0
votes
1 answer

How to connect a bluetooth input device to a computer?

I have created a bluetooth input device (stylus) and would like to connect it to both a Mac and Windows (and preferably Linux in the future). Is there an ideal software / language to use to create a cross-platform application? I have considered…
user2075625
  • 93
  • 2
  • 11
0
votes
1 answer

How to read /dev/input/eventX

I want to read input-data (keyboard-input) from the /dev/input/eventX-Files. I thought, I find the informations in: lrwxrwxrwx 1 root root 9 19. Feb 07:45 usb-_USB_Keyboard-event-if01 -> ../event4 lrwxrwxrwx 1 root root 9 19. Feb 07:45…
Andre
  • 1,249
  • 1
  • 15
  • 38