chrippa / ds4drv

A Sony DualShock 4 userspace driver for Linux
MIT License
1.05k stars 213 forks source link

[Feature Request] The ability to map complete keystrokes and macros #36

Open liftoff opened 10 years ago

liftoff commented 10 years ago

It would be nice if we could define keystrokes like:

KEY_LEFTSHIFT+KEY_UP = button_l1

To further this line of thinking it would be really, really great if we could define whole macros:

KEY_V,DELAY(500),KEY_1 = button_r2

...and with button combinations on the other side as well:

KEY_LEFTSHIFT+KEY_TAB = button_l3+button_r3
Ape commented 10 years ago

Also, if this is going to be refactored, I think it should be

button_l1 = KEY_UP

instead of

KEY_UP = button_l1
liftoff commented 10 years ago

I agree. The mapping should definitely be:

controller event = some action or actions

That makes a heck of a lot more sense.

wesbeyrent commented 6 years ago

I know this is an old feature request, but I'd like to second this request, specifically the combo mapping in a manner such as:

KEY_SPACEBAR = button_l2+button_r2

This would be extremely helpful when mapping for games that rely heavily on the keyboard along with a joystick.