|
|
|
@ -16,6 +16,9 @@
|
|
|
|
|
|
|
|
|
|
#include "testing/AbsoluteMouseReport.h"
|
|
|
|
|
|
|
|
|
|
#include "Kaleidoscope.h"
|
|
|
|
|
#include "testing/fix-macros.h"
|
|
|
|
|
|
|
|
|
|
#include <cstring>
|
|
|
|
|
|
|
|
|
|
#include "MouseButtons.h"
|
|
|
|
@ -27,6 +30,11 @@ AbsoluteMouseReport::AbsoluteMouseReport(const void* data) {
|
|
|
|
|
const ReportData& report_data =
|
|
|
|
|
*static_cast<const ReportData*>(data);
|
|
|
|
|
memcpy(&report_data_, &report_data, sizeof(report_data_));
|
|
|
|
|
timestamp_ = Runtime.millisAtCycleStart();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
uint32_t AbsoluteMouseReport::Timestamp() const {
|
|
|
|
|
return timestamp_;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
std::vector<uint8_t> AbsoluteMouseReport::Buttons() const {
|
|
|
|
|