Added an array to InputDevice that keeps track of any button that received both a 'down' and 'up' message in the same update. This array then apply itself to InputDevice's previousState_ so these inputs can be detected.
Note that I assume these input devices are manipulated using messages from the platform, specifically the Windows platform. I'm not familiar with how other platforms work in this library, but this should only affect code that uses the HandleButton(...) function (besides the additional memory footprint of one Array<> in each InputDevice
Added an array to
InputDevice
that keeps track of any button that received both a 'down' and 'up' message in the same update. This array then apply itself toInputDevice
'spreviousState_
so these inputs can be detected.Note that I assume these input devices are manipulated using messages from the platform, specifically the Windows platform. I'm not familiar with how other platforms work in this library, but this should only affect code that uses the
HandleButton(...)
function (besides the additional memory footprint of oneArray<>
in eachInputDevice