Allow multiple configuration files
Will merge contents from @CMAKE_INSTALL_PREFIX@/share/wivrn/config.json /etc/wivrn/config.json ~/.config/wivrn.config.json (XDG_CONFIG_DIR in fact) If -f option is provided, just parse that file, don't merge anything
This commit is contained in:
@@ -572,7 +572,7 @@ wivrn_controller::wivrn_controller(int hand_id,
|
||||
SET_INPUT(TOUCH, GRIP_POSE);
|
||||
SET_INPUT(GENERIC, PALM_POSE);
|
||||
|
||||
if (auto grip_surface = configuration::read_user_configuration().grip_surface)
|
||||
if (auto grip_surface = configuration().grip_surface)
|
||||
{
|
||||
std::array<float, 3> angles = grip_surface.value();
|
||||
float deg_2_rad = std::numbers::pi / 180.0;
|
||||
|
||||
Reference in New Issue
Block a user