core: hid: Implement true multitouch support

This commit is contained in:
Narr the Reg 2022-11-05 10:39:03 -06:00 committed by german77
parent 08091ff3e3
commit 38c48cf8d8
5 changed files with 93 additions and 46 deletions

View file

@ -200,9 +200,6 @@ Common::Input::TouchStatus TransformToTouch(const Common::Input::CallbackStatus&
x = std::clamp(x, 0.0f, 1.0f);
y = std::clamp(y, 0.0f, 1.0f);
// Limit id to maximum number of fingers
status.id = std::clamp(status.id, 0, 16);
if (status.pressed.inverted) {
status.pressed.value = !status.pressed.value;
}