Function clicky::execute_on_click

source ·
pub fn execute_on_click(button_mac_address: &str, callback: BoxedCallback)
Expand description

Executes a callback whenever a “click” is registered on the specified MAC address.

Currently a “click” is defined as a KEY_VOLUMEUP event (keycode 115) with value 1 (pressed).

This function is blocking. It is up to the caller execute it within a new thread or use another async mechanism if the computation should continue.