Fast-path 0-amplitude haptics

This commit is contained in:
Patrick Nicolas
2024-04-05 15:21:12 +02:00
parent 40043d1e45
commit fd6b9f539a
3 changed files with 21 additions and 13 deletions
+7 -1
View File
@@ -94,7 +94,13 @@ private:
vk::raii::Fence fence = nullptr;
vk::raii::CommandBuffer command_buffer = nullptr;
std::array<std::pair<XrAction, XrPath>, 2> haptics_actions;
struct haptics_action
{
XrAction action;
XrPath path;
std::atomic<float> amplitude;
};
std::array<haptics_action, 2> haptics_actions;
std::vector<std::tuple<device_id, XrAction, XrActionType>> input_actions;
state state_ = state::initializing;