Memphiz/xbmc — comment on commit 96c1b4b594bf5f079acbae8cd4bd7bad0bd318a3
File: xbmc/osx/atv2/iosremote.mm line 63
By jmarshallnz:

Is it possible that you miss an event or get two button down events? (i.e. you're assuming that the else block is !pressed && id == button, where as it's !pressed || id == button).