Skip to content

Simple tool to map second usb keyboard keys to some key combinations

Notifications You must be signed in to change notification settings

Timu5/usbmacros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

USBMacros

Simple tool to map second usb keyboard keys to some key combinations, useful everywhere you may need some extra buttons e.g. flight simulators.

This tool exist as I couldn't find any tools that would work propertly with DCS.

How it works

It's directly communicating with usb keyboard by bypassing system HID keyboard driver with libusb(WinUSB to be specific).

New inputs are send throught SendInput API.

Limitations

Currently only one keyboard is supported.

How to use

Install WinUSB driver using zadig for specific keyboard, after that keyboard will no longer be detected as input device.

Download latest release from releases.

Modify config.yaml to match your needs, especialy keyboard vendor id, product id and mappings.

Run usbmacro.exe

How to run from source

Install dependencies:

pip install pyusb libusb pydirectinput

Run as administrator:

python usbmapper.py

About

Simple tool to map second usb keyboard keys to some key combinations

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages