From f9a86bced64c711a9b4ab1da7d608a2d6a58b261 Mon Sep 17 00:00:00 2001 From: git2323 <44967298+git2323@users.noreply.github.com> Date: Sat, 18 Nov 2023 11:49:53 +0100 Subject: [PATCH] device: fix small typo, fixes 1571 (#1572) --- panda/src/device/inputDeviceNode.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/device/inputDeviceNode.cxx b/panda/src/device/inputDeviceNode.cxx index b5e749b2d6..286dd93c08 100644 --- a/panda/src/device/inputDeviceNode.cxx +++ b/panda/src/device/inputDeviceNode.cxx @@ -69,7 +69,7 @@ do_transmit_data(DataGraphTraverser *, const DataNodeTransmit &, const ButtonEvent &event = bel->get_event(i); if (event._type == ButtonEvent::T_down) { _button_states[event._button] = true; - } else if (event._type == ButtonEvent::T_down) { + } else if (event._type == ButtonEvent::T_up) { _button_states[event._button] = false; } }