mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-21 20:14:50 +00:00
feat: make left and right qwerty controllers appear as no controller detected
This commit is contained in:
parent
92cd8f6a94
commit
9a4ef01ed9
1 changed files with 10 additions and 0 deletions
|
@ -61,9 +61,19 @@ impl SimpleComponent for DevicesBox {
|
|||
}
|
||||
if !has_left && dev.roles.contains(&XRDeviceRole::Left) {
|
||||
has_left = true;
|
||||
if ["Qwerty Left Controller"].contains(&dev.name.as_str()) {
|
||||
row_model.state = Some(DeviceRowState::Warning);
|
||||
row_model.subtitle =
|
||||
Some(format!("No left controller detected ({})", dev.name));
|
||||
}
|
||||
}
|
||||
if !has_right && dev.roles.contains(&XRDeviceRole::Right) {
|
||||
has_right = true;
|
||||
if ["Qwerty Right Controller"].contains(&dev.name.as_str()) {
|
||||
row_model.state = Some(DeviceRowState::Warning);
|
||||
row_model.subtitle =
|
||||
Some(format!("No right controller detected ({})", dev.name));
|
||||
}
|
||||
}
|
||||
models.push(row_model);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue