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
175
votes
17 answers

JavaScript: Check if mouse button down?

Is there a way to detect if a mouse button is currently down in JavaScript? I know about the "mousedown" event, but that's not what I need. Some time AFTER the mouse button is pressed, I want to be able to detect if it is still pressed down. Is…
TM.
  • 108,298
  • 33
  • 122
  • 127
24
votes
1 answer

How can you take ownership of a hid device?

What I would like to take ownership of a hid device that may already have been plugged in, consume it's output, while preventing others(X11 or terminal) from consuming it. If I can help it, I don't want to pretend to be a terminal, but rather to…
Catskul
  • 17,916
  • 15
  • 84
  • 113
15
votes
6 answers

Make a USB Device, Control It In Java

I'm thinking about making a physical controller (device?) with knobs, buttons, and LEDs. I'd like to interact with it using Java (respond to the knobs, light up LEDs, etc). The reason I mention Java is two-fold: first, I know Java well1. Second,…
Dan Rosenstark
  • 68,471
  • 58
  • 283
  • 421
8
votes
1 answer

Simulate mouse motion on linux wayland

I receive xy data from my network and i would like to control the mouse position using linux on wayland. I've seen many source codes using X libs or X apps but it will not work on wayland. I also have a look on libinput and evedev but i don't find…
Erwan Douaille
  • 553
  • 1
  • 10
  • 31
7
votes
2 answers

/dev/input keyboard format

I've been playing around with capturing the input from my keyboard device: /dev/input/by-path/platform-i8042-serio-0-event-kbd for me, and I was wondering if there was any specification for what it returns, using od -tx1…
EricR
  • 1,487
  • 2
  • 21
  • 42
6
votes
1 answer

Wake up android phone on an interrupt, on a GPIO

On Android development board, I am trying to wake up the AP based on an interrupt received on a GPIO, can anybody help me with this? My understanding on this is: We need to create an input device and update an event to this device based on the…
kumar
  • 73
  • 6
6
votes
1 answer

Create a Wacom-like Linux uinput device for work with touchscreen and pen

This is a fairly broad question, so I will try to keep it as focused as I can. I currently own a Lenovo laptop with Ubuntu installed and touchscreen functionality and own a pressure-sensitive Bluetooth pen, and been trying to make the two work…
GeReV
  • 3,195
  • 7
  • 32
  • 44
6
votes
1 answer

Android: enumerating the buttons on a gamepad

I have an Android device into which a gamepad can be connected (it's a totally standard XBox 360 controller, but I need to support other varieties as well). The gamepad is showing up as a InputDevice with some analogue axes and some buttons. I need…
David Given
  • 13,277
  • 9
  • 76
  • 123
5
votes
3 answers

How to use trackpad scrolling in .Net

My WinForms app uses the mouse wheel, subscribing to the Control.MouseWheel event. How can I get it to work with scrolling methods from other input devices, in particular "finger along the edge" scrolling on the (Synaptics) trackpad on my T61? I…
Joel in Gö
  • 7,460
  • 9
  • 47
  • 77
5
votes
7 answers

What alternative user input techniques should be adopted in programming?

Programming is particularly different to, for example word processing due to the wealth of special symbols etc that need to be entered. Of the current crop of new user interface techniques, which are suited to programming and why? Or is the idea of…
Jesse Pepper
  • 3,225
  • 28
  • 48
5
votes
2 answers

Access the Sony Playstation SixAxis Controller using C++ on Linux

I'm coding in C++ on Linux (Ubuntu 12.04 specifically) and would like to use the PlayStation SixAxis controller (the type that comes with the PS3) as an input device, ideally over bluetooth. My application will be running headless. There's no window…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
5
votes
0 answers

Finger Position on Touchpad

I would like to get the (x,y) coordinate being touched on a Logitech Wireless Touchpad. I am programming in Python and hope to use the touchpad as an input device to drive a microscope stage. I am not really sure how to access the touch data; I have…
Andrew Donelick
  • 173
  • 1
  • 2
  • 10
4
votes
0 answers

When enumerating devices using DirectInput, is there a way to get a device's full instance ID?

I'm the author of an open source tool (devreorder) that allows users to specify a stable order for their DirectInput devices. In order for it to work, I need to be able to consistently distinguish between all of the input device connected to the…
Bri Bri
  • 2,169
  • 3
  • 19
  • 44
4
votes
2 answers

Android kcm file doesn't seem to work. What am I missing?

I have created an input device driver that I use for controlling mouse/keyboard from an app. Everything works so far, I can generate input events for both keyboard and mouse from within the app. The problem I'm facing right now is that I'm unable to…
Leon van Noord
  • 868
  • 1
  • 7
  • 24
4
votes
1 answer

How to wake up an Android Embedded Board from Suspend by using a GPIO

I am currently working on porting Android 4.4 (Kitkat) on an embedded system (Freescale i.MX6 based). In order to start my development, I used a few development kits (Wandboard, Boundary Device's BD-SL). While working on the power management of my…
gfrigon
  • 2,237
  • 2
  • 23
  • 32
1
2 3 4 5 6