Use a separate packet for refresh rate change

This commit is contained in:
Patrick Nicolas
2025-01-07 23:42:11 +01:00
parent d6649b0052
commit a434094055
10 changed files with 70 additions and 56 deletions
+18 -1
View File
@@ -482,6 +482,23 @@ struct tracking_control
std::array<bool, size_t(id::last) + 1> enabled;
};
using packets = std::variant<crypto_handshake, pin_check_2, pin_check_4, handshake, audio_stream_description, video_stream_description, audio_data, video_stream_data_shard, haptics, timesync_query, tracking_control>;
struct refresh_rate_change
{
float fps;
};
using packets = std::variant<
crypto_handshake,
pin_check_2,
pin_check_4,
handshake,
audio_stream_description,
video_stream_description,
audio_data,
video_stream_data_shard,
haptics,
timesync_query,
tracking_control,
refresh_rate_change>;
} // namespace to_headset
} // namespace wivrn