diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:15:51 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:15:51 -0500 |
| commit | 66d9217616d8cb654ba7914f650ce4b78c65987c (patch) | |
| tree | bce75aaff8457d76b4092b0f8cd7e770d99a4f52 /runtime/shims/gameinput.cpp | |
| parent | 0be0e8ca5f268830f56529e81a51c2e0b4867d2a (diff) | |
| parent | 399b30f69b7105593e92c06499cdd8cc618edbb9 (diff) | |
Merge pull request #4552 from Maxime Mansiet
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
# docs/gameinput.md
Diffstat (limited to 'runtime/shims/gameinput.cpp')
| -rw-r--r-- | runtime/shims/gameinput.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/shims/gameinput.cpp b/runtime/shims/gameinput.cpp index 896310ef0..d93592eb2 100644 --- a/runtime/shims/gameinput.cpp +++ b/runtime/shims/gameinput.cpp | |||
| @@ -663,6 +663,7 @@ bool Reading::GetRawReport(void** report) { | |||
| 663 | if (!report) return false; | 663 | if (!report) return false; |
| 664 | *report = nullptr; | 664 | *report = nullptr; |
| 665 | if (!s_.has_raw) return false; | 665 | if (!s_.has_raw) return false; |
| 666 | std::lock_guard lock(device_->hid_mu); | ||
| 666 | const GameInputRawDeviceReportInfo* info = device_->find_raw(GameInputRawInputReport, s_.raw_id); | 667 | const GameInputRawDeviceReportInfo* info = device_->find_raw(GameInputRawInputReport, s_.raw_id); |
| 667 | if (!info) return false; | 668 | if (!info) return false; |
| 668 | *report = static_cast<IGameInputRawDeviceReport*>(new RawReport(device_, *info, s_.raw.data(), s_.raw.size())); | 669 | *report = static_cast<IGameInputRawDeviceReport*>(new RawReport(device_, *info, s_.raw.data(), s_.raw.size())); |