Live update of Input preferences device list

- Implement watch_input_devices in input_server, as it was TODO. For
  now, only one watcher is allowed at a time.
- Use it in Input preferences to get notified about added and removed
  devices and update the device list accordingly.

Change-Id: I52018af53738e68271d6d63b5bea31fd7cab1b3b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2041
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Adrien Destugues
2020-01-25 11:58:48 +00:00
committed by Adrien Destugues
parent c5e9dd9b68
commit 696d127d12
6 changed files with 120 additions and 36 deletions
+1
View File
@@ -35,6 +35,7 @@
#define IS_FIND_DEVICES 'Ifdv'
#define IS_WATCH_DEVICES 'Iwdv'
#define IS_NOTIFY_DEVICE 'Intf'
#define IS_IS_DEVICE_RUNNING 'Idvr'
#define IS_START_DEVICE 'Istd'
#define IS_STOP_DEVICE 'Ispd'