rgerganov / footswitch

Command-line utility for PCsensor and Scythe foot switches
MIT License
414 stars 60 forks source link

Right Ctrl only? #55

Closed CorsairF4U closed 4 years ago

CorsairF4U commented 4 years ago

Trying to find a way to program right ctrl key only? I've not found a way yet.

Thanks.

rgerganov commented 4 years ago

This has been requested before (issue #43) but I don't know how to do it. Sorry.

hanwin commented 4 years ago

Maybe this will push you in right direction https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code or https://stackoverflow.com/questions/5681284/how-do-i-distinguish-between-left-and-right-keys-ctrl-and-alt

rgerganov commented 4 years ago

Does footswitch -k Control_R work for you?

rgerganov commented 4 years ago

Implemented with commit 1225425e66013646cd68d02009b7bec6136e5006