Next-Flip / Momentum-Firmware

🐬 Feature-rich, stable and customizable Flipper firmware
https://momentum-fw.dev
GNU General Public License v3.0
3.05k stars 107 forks source link

JS: Add BadUSB function to read the state of "Lock Keys" #132

Open piushartmann opened 1 month ago

piushartmann commented 1 month ago

Description of the feature you're suggesting.

Add a function to the BadUSB JS library that allows user to read the state of "Lock Keys" (e.g. CAPSLOCK, NUMLOCK, SCROLLOCK) like in Ducky Script 3.0.

Anything else?

Maybe with the furi_hal_hid_get_led_state() C function?