flipperzero-cli-tools
flipperzero-cli-tools copied to clipboard
Input Commands Light Up Device But No Execution Takes Place
I have been entering “input send ok press” through cli command using a usb cord and Im using mac terminal to execute the command. the flipper device lights up when the cli command is executed but nothing is actually selected on screen. I also tried the other input commands related to speed and release and still nothing. Up, down, left, and right all make the device light up but no execution or selecting on screen occurs. Now I have tried the vibro commands with the cli and flipper vibrates as expected, so now Im stumped wondering what the issue could be. Any help would be greatly appreciated. Thanks!
Hello!
You should use 3 events sequentially for direct input events injecting. Example is here.
Any sequence must start from PRESS and ends with RELEASE (see more about parsing events). The same prrinciple used via both: CLI and RPC.
CLI:
>: input send
Invalid arguments. Usage:
input send <key> <type>
<key> - one of 'up', 'down', 'left', 'right', 'back', 'ok'
<type> - one of 'press', 'release', 'short', 'long'
For example, via cli, to emulate short press OK, you should send:
>: input send ok press
>: input send ok short
>: input send ok release
P.S. For live discover events you can use input dump
in CLI and try press physical keys on Flipper.
That did the trick!!! Thank you for the speedy reply. You rock!