Factorize permission code
This commit is contained in:
committed by
Guillaume Meunier
parent
1623769816
commit
76626b8133
@@ -19,8 +19,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "hardware.h"
|
||||
#include "wivrn_discover.h"
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
namespace xr
|
||||
{
|
||||
class system;
|
||||
@@ -43,10 +47,13 @@ public:
|
||||
float preferred_refresh_rate = 0;
|
||||
float resolution_scale = 1.4;
|
||||
bool show_performance_metrics = false;
|
||||
bool microphone = false;
|
||||
bool passthrough_enabled = false;
|
||||
|
||||
bool check_feature(feature f);
|
||||
void set_feature(feature f, bool state);
|
||||
|
||||
private:
|
||||
std::map<feature, bool> features;
|
||||
configuration(const std::string &);
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user