Support trigger and thumb haptics

This commit is contained in:
Patrick Nicolas
2025-02-21 18:43:15 +01:00
parent 8443406a8f
commit 52fd337526
3 changed files with 38 additions and 24 deletions
+2 -2
View File
@@ -113,9 +113,9 @@ private:
{
XrAction action;
XrPath path;
std::atomic<float> amplitude;
float amplitude;
};
std::array<haptics_action, 2> haptics_actions;
std::unordered_multimap<device_id, haptics_action> haptics_actions;
std::vector<std::tuple<device_id, XrAction, XrActionType>> input_actions;
state state_ = state::initializing;