int keyState = (keyFlags & 0xFF00) >> 8;
BOOL keyIsRepeat = (keyFlags & 0x1) > 0;
- if (keyIsRepeat)
+ // allow repeated keypresses for volume buttons
+ // all other repeated keypresses are handled by the os (is this really good?)
+ if (keyIsRepeat && keyCode != NX_KEYTYPE_SOUND_UP && keyCode != NX_KEYTYPE_SOUND_DOWN)
return event;
NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
m_eventPort = NULL;
m_runLoopSource = NULL;
m_controlSysPower = NO;
- m_controlSysVolume = NO;
+ m_controlSysVolume = YES; // volume keys control xbmc volume
}
return self;
}