expose battery on hmd xdev

This commit is contained in:
galister
2024-08-10 22:54:41 +02:00
committed by xytovl
parent 2a50237142
commit 225bf9d30f
7 changed files with 146 additions and 1 deletions
+8 -1
View File
@@ -218,7 +218,14 @@ struct feedback
uint8_t times_displayed;
};
using packets = std::variant<headset_info_packet, feedback, audio_data, handshake, tracking, hand_tracking, inputs, timesync_response>;
struct battery
{
float charge;
bool present;
bool charging;
};
using packets = std::variant<headset_info_packet, feedback, audio_data, handshake, tracking, hand_tracking, inputs, timesync_response, battery>;
} // namespace from_headset
namespace to_headset