Open diwo opened 4 years ago
@WerWolv this one is ready now, depends on https://github.com/WerWolv/libtesla/pull/23
Note that there's no safeguard against assigning stupid key combos like A
button by itself. In case someone does go through with it, they may have to take their SD card out of their switch and delete the tesla config file on a computer.
This is a preview of the combo config UI. It cannot compile against libtesla@master since the lib is currently missing APIs to allow Gui to capture
keysHeld
and to update combo keys. This PR also does not include changes to existing UI elements to access this new UI.The combo config UI asks the user to hold down the new key combo for 2.5 seconds. The user then has to release all the keys, and then input the new combo again to confirm the change. The user can leave the UI without changing the combo by pressing KEY_PLUS twice.
Screenshots: https://imgur.com/yZ12kx6 https://imgur.com/X22zqBL https://imgur.com/BNd9JuL