Skip to content

Simple OSX CLI utility to run a command when a button is pressed on a gamepad

Notifications You must be signed in to change notification settings

meancoot/hidwait

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

hidwait

Simple OSX CLI utility to run a command when a button is pressed on a gamepad

Usage %s --command=command_to_run [options]
  (Option)               (Description)                  (Default)
  --device=device_name   Name of HID device to monitor  PLAYSTATION(R)3 Controller
  --button=button_index  Button number to monitor       16
  --cancel=seconds       If button is held longer than  1
                         this it is ignored.

By default it will wait for the PS button on a PlayStation 3 controller. The --cancel argument is used so that it won't pick up when you hold the PS button down to turn off the controller.

About

Simple OSX CLI utility to run a command when a button is pressed on a gamepad

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages