badgio/XboxOneController — pull request #4 by Liryna (2014-04-27 13:00:15+00:00)
Title: Set dwPacketNumber when State changed

According to the documentation http://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sdk.reference.xinput_state%28v=vs.85%29.aspx

We should set dwPacketNumber when the State have changed.