upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/shims/gameinput.cpp
diff options
context:
space:
mode:
authorMaxime Mansiet <AirKyzzZ@users.noreply.github.com>2026-11-23 03:02:17 +0100
committerMaxime Mansiet <AirKyzzZ@users.noreply.github.com>2026-11-23 03:05:55 +0100
commit0519bc2c8108089c65652f550e8b950f9731eb33 (patch)
tree88764434b3fff1e09a6305bb4b5c12fb3850a61b /runtime/shims/gameinput.cpp
parent03b09a086592a197db64d91655c6e65c30764d96 (diff)
gameinput: a reading callback's inputKind filter checks what the device supports
Signed-off-by: Maxime Mansiet <AirKyzzZ@users.noreply.github.com>
Diffstat (limited to 'runtime/shims/gameinput.cpp')
-rw-r--r--runtime/shims/gameinput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/shims/gameinput.cpp b/runtime/shims/gameinput.cpp
index 69707f75a..dbd2cbe72 100644
--- a/runtime/shims/gameinput.cpp
+++ b/runtime/shims/gameinput.cpp
@@ -823,7 +823,7 @@ bool matches(const Callback& c, const Event& e) {
823 if (!(c.kind & e.device->info.supportedInput) && c.kind != GameInputKindUnknown) return false; 823 if (!(c.kind & e.device->info.supportedInput) && c.kind != GameInputKindUnknown) return false;
824 return e.only || ((e.current ^ e.previous) & c.status_filter); 824 return e.only || ((e.current ^ e.previous) & c.status_filter);
825 case CbType::Reading: 825 case CbType::Reading:
826 return (c.kind & kSupportedKinds) || c.kind == GameInputKindUnknown; 826 return c.kind == GameInputKindUnknown || (c.kind & e.device->info.supportedInput);
827 default: 827 default:
828 return true; 828 return true;
829 } 829 }