LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

keyboard or mouse mounted as ghost joystick

Posted 09-14-2016 at 12:15 PM by number22
Updated 09-15-2016 at 06: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 1789 Comments 0 number22 is offline
Old
Rating: 4 votes, 4.00 average.

Bash scripts and keyboard input

Posted 01-29-2012 at 02: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 12885 Comments 0 Nominal Animal is offline

  



All times are GMT -5. The time now is 09:03 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
Open Source Consulting | Domain Registration