Skip to content

Python script for Joystick Gremlin that maps joystick buttons to virtual joysticks, while filtering out ghost inputs

Notifications You must be signed in to change notification settings

high-the-memory/ghost-input-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 

Repository files navigation

ghost-input-filter

Python script for Joystick Gremlin that maps joystick buttons to virtual joysticks, while filtering out ghost inputs

About The Project

Written for the Logitech X56 Hotas (but should work for any Hotas), wherein I was having issues with ghost inputs (random button inputs that I didn't press, sent to the game). Most posts online suggest plugging the hotas into the back of the computer--which I did--or getting a powered hub--which I got--in order to fix these issues--which it didn't.

This python plugin for Joystick Gremlin will map all physical buttons on a given device to the same buttons on a vJoy device, EXCEPT where multiple buttons are detected at the same time within a configurable timespan (~10ms by default).

How It Works

By default, this plugin will map every internal button (1-17 on an X56 Stick and 1-36 on an X56 throttle) to the corresponding button on a vJoy device.

When you press a button on the physical device, the plugin determines if this is likely a ghost input. If it is, it is blocked. Otherwise, Joystick Gremlin remaps the input to a virtual vJoy device. This is the input that is seen by the game. HidHide ensures that the game only sees the virtual input, and not the physical device. Thus, all ghosting is ignored.

You can also add other mappings or JG configurations in the normal gui, and they should work on top of this plugin mapping.

Getting Started

You'll need a few programs installed and configured.

Prerequisites

Installation

  1. Download ghost-input-filter.py
  2. Open Joystick Gremlin > Plugins tab
  3. Add plugin > ghost-input-filter.py
  4. Don't forget to File > Save Profile

(For an in-depth rundown of the steps for these different programs, check out the Installation Guide wiki)

About

Python script for Joystick Gremlin that maps joystick buttons to virtual joysticks, while filtering out ghost inputs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages