mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-26 22:40:25 +00:00
917410a0a8
* fbt: reworking targets & assets handling WIP * fbt: dist fixes * fbt: moved SD card resources to owning apps * unit_tests: moved resources to app folder * github: updated unit_tests paths * github: packaging fixes * unit_tests: fixes * fbt: assets: internal cleanup * fbt: reworked assets handling * github: unit_tests: reintroducing fixes * minor cleanup * fbt: naming changes to reflect private nature of scons tools * fbt: resources: fixed dist archive paths * docs: updated paths * docs: updated more paths * docs: included "resources" parameter in app manifest docs; updated assets readme * updated gitignore for assets * github: updated action versions * unit_tests: restored timeout; scripts: assets: logging changes * gh: don't upload desktop animations for unit test run Co-authored-by: あく <alleteam@gmail.com>
91 lines
1.9 KiB
C
91 lines
1.9 KiB
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** Start Hid Keyboard Profile
|
|
*/
|
|
void furi_hal_bt_hid_start();
|
|
|
|
/** Stop Hid Keyboard Profile
|
|
*/
|
|
void furi_hal_bt_hid_stop();
|
|
|
|
/** Press keyboard button
|
|
*
|
|
* @param button button code from HID specification
|
|
*
|
|
* @return true on success
|
|
*/
|
|
bool furi_hal_bt_hid_kb_press(uint16_t button);
|
|
|
|
/** Release keyboard button
|
|
*
|
|
* @param button button code from HID specification
|
|
*
|
|
* @return true on success
|
|
*/
|
|
bool furi_hal_bt_hid_kb_release(uint16_t button);
|
|
|
|
/** Release all keyboard buttons
|
|
*
|
|
* @return true on success
|
|
*/
|
|
bool furi_hal_bt_hid_kb_release_all();
|
|
|
|
/** Set mouse movement and send HID report
|
|
*
|
|
* @param dx x coordinate delta
|
|
* @param dy y coordinate delta
|
|
*/
|
|
bool furi_hal_bt_hid_mouse_move(int8_t dx, int8_t dy);
|
|
|
|
/** Set mouse button to pressed state and send HID report
|
|
*
|
|
* @param button key code
|
|
*/
|
|
bool furi_hal_bt_hid_mouse_press(uint8_t button);
|
|
|
|
/** Set mouse button to released state and send HID report
|
|
*
|
|
* @param button key code
|
|
*/
|
|
bool furi_hal_bt_hid_mouse_release(uint8_t button);
|
|
|
|
/** Set mouse button to released state and send HID report
|
|
*
|
|
* @param button key code
|
|
*/
|
|
bool furi_hal_bt_hid_mouse_release_all();
|
|
|
|
/** Set mouse wheel position and send HID report
|
|
*
|
|
* @param delta number of scroll steps
|
|
*/
|
|
bool furi_hal_bt_hid_mouse_scroll(int8_t delta);
|
|
|
|
/** Set the following consumer key to pressed state and send HID report
|
|
*
|
|
* @param button key code
|
|
*/
|
|
bool furi_hal_bt_hid_consumer_key_press(uint16_t button);
|
|
|
|
/** Set the following consumer key to released state and send HID report
|
|
*
|
|
* @param button key code
|
|
*/
|
|
bool furi_hal_bt_hid_consumer_key_release(uint16_t button);
|
|
|
|
/** Set consumer key to released state and send HID report
|
|
*
|
|
* @param button key code
|
|
*/
|
|
bool furi_hal_bt_hid_consumer_key_release_all();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|