chrippa / ds4drv

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

Wait to create input, delete input on disconnect #178

Open OdinVex opened 4 years ago

OdinVex commented 4 years ago

Any way to not create input devices unless a controller is connected? Other software sometimes forcibly switch to using the virtual controller created by ds4drv instead of keyboard. Any way to also disable the mouse-control with the pad?

Example: Terraria on Steam. Even with controller disconnected, running ds4drv on system startup (daemon) results in the emulated xbox controller being created which prevents Terraria from using keyboard for input instead of virtual controller.

albfan commented 2 years ago

This makes sense to me. Look for place where controller is created and only create when controller is found