mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-14 15:07:26 +01:00
inpututil: add comments
This commit is contained in:
parent
dc41960d3b
commit
0942fbb4d7
@ -640,6 +640,7 @@ func AppendJustReleasedTouchIDs(touchIDs []ebiten.TouchID) []ebiten.TouchID {
|
|||||||
defer theInputState.m.RUnlock()
|
defer theInputState.m.RUnlock()
|
||||||
|
|
||||||
origLen := len(touchIDs)
|
origLen := len(touchIDs)
|
||||||
|
// Iterate prevTouchStates instead of touchStates since touchStates doesn't have released touches.
|
||||||
for id, state := range theInputState.prevTouchStates {
|
for id, state := range theInputState.prevTouchStates {
|
||||||
if state.duration == 0 {
|
if state.duration == 0 {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user