diff --git a/src/inputs.d b/src/inputs.d index ff648bf..bcae9d4 100644 --- a/src/inputs.d +++ b/src/inputs.d @@ -15,6 +15,12 @@ class InputEvent uint tick; Inputs inputs; InputEvent next; + + this() { } + this(InputEvent ie) + { + inputs = ie.inputs; + } }; class InputEventList @@ -35,7 +41,7 @@ public: } else if (m_last_event.tick < tick) { - m_last_event.next = new InputEvent(); + m_last_event.next = new InputEvent(m_last_event); m_last_event = m_last_event.next; m_last_event.tick = tick; }