* Add HID report/descriptor for a new report with mouse buttons, and x/y/wheel deltas. * New mouse key press behavior for press/release of mouse keys. * Add constants for HID main item values (e.g. data/array/absolute) * Define and use constants for our HID report IDs.
19 lines
463 B
C
19 lines
463 B
C
/*
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <zmk/keys.h>
|
|
#include <zmk/hid.h>
|
|
|
|
int zmk_hog_init();
|
|
|
|
int zmk_hog_send_keyboard_report(struct zmk_hid_keyboard_report_body *body);
|
|
int zmk_hog_send_consumer_report(struct zmk_hid_consumer_report_body *body);
|
|
|
|
#if IS_ENABLED(CONFIG_ZMK_MOUSE)
|
|
int zmk_hog_send_mouse_report(struct zmk_hid_mouse_report_body *body);
|
|
#endif // IS_ENABLED(CONFIG_ZMK_MOUSE)
|