onDeviceChanged method
Fresh device facts from the host; pushes when the pushed subset changed.
Implementation
void onDeviceChanged(GameDeviceInfo info) {
if (_closed || _bridge.state != GameSessionState.open) return;
final previous = _lastDevice;
if (previous != null && !info.pushChangedSince(previous)) return;
_lastDevice = info;
_sendSafe(jsonEncode({'type': 'device', 'payload': info.pushJson()}));
}