LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

keyboard or mouse mounted as ghost joystick

Posted 09-14-2016 at 01:15 PM by number22
Updated 09-15-2016 at 07:58 PM by number22 (spelling, format)

Mouse cursor jumps randomly and having a hard time in some steam games. This problem is fixed by udev rules. find this link by google: udev keyboard joystick

https://github.com/denilsonsa/udev-joystick-blacklist

Modified its rules so the ghost joystick is unbinded from usbhid driver.

Code:
#Microsoft Corp. Basic Optical Mouse v2.0 power
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0x045e", ATTR{idProduct}=="0x00cb",
...
Member
Posted in Uncategorized
Views 517 Comments 0 number22 is offline
Old

Bash scripts and keyboard input

Posted 01-29-2012 at 03:43 PM by Nominal Animal

You can use Bash to read individual keypresses. Here is an example:
Code:
#!/bin/bash

# Reset terminal to current state when we exit.
trap "stty $(stty -g)" EXIT

# Disable echo and special characters, set input timeout to 0.2 seconds.
stty -echo -icanon time 2 || exit $?

# String containing all keypresses.
KEYS=""

# Set field separator to BEL (should not occur in keypresses)
IFS=$'\a'
...
Senior Member
Posted in Uncategorized
Views 8790 Comments 0 Nominal Animal is offline

  



All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration