jds691 / Twig

A lightweight game library for JavaFX.
0 stars 0 forks source link

wasPressed and wasReleased do not report correct information #1

Closed jds691 closed 8 months ago

jds691 commented 8 months ago

The bug with the InputService related to the shallow cloning of the states array. This caused states at different points in time to be affected by the next frame being processed.

This has been fixed by implementing deep cloning of input states between states[0] and states[1].