Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

In response to issue #36 #38

Open
wants to merge 1 commit into
base: contrib
Choose a base branch
from
Open

In response to issue #36 #38

wants to merge 1 commit into from

Conversation

GameOverture
Copy link

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

…eived 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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant