|
|
@ -26,8 +26,7 @@ THE SOFTWARE.
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
|
|
class HIDReportObserver
|
|
|
|
class HIDReportObserver {
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
typedef void(*SendReportHook)(uint8_t id, const void* data,
|
|
|
|
typedef void(*SendReportHook)(uint8_t id, const void* data,
|
|
|
@ -40,7 +39,9 @@ class HIDReportObserver
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static SendReportHook currentHook() { return send_report_hook_; }
|
|
|
|
static SendReportHook currentHook() {
|
|
|
|
|
|
|
|
return send_report_hook_;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static SendReportHook resetHook(SendReportHook new_hook) {
|
|
|
|
static SendReportHook resetHook(SendReportHook new_hook) {
|
|
|
|
auto previous_hook = send_report_hook_;
|
|
|
|
auto previous_hook = send_report_hook_;
|
|
|
|