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.