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; } }