29 lines
729 B
Rust
29 lines
729 B
Rust
use serde::{Deserialize, Serialize};
|
|
use settings_schema::{EntryData, SettingsSchema};
|
|
|
|
#[derive(SettingsSchema, Serialize, Deserialize, PartialEq, Default, Clone)]
|
|
pub struct Fov {
|
|
#[schema(min = 0., max = 90., step = 0.1, gui = "UpDown")]
|
|
pub left: f32,
|
|
|
|
#[schema(min = 0., max = 90., step = 0.1, gui = "UpDown")]
|
|
pub right: f32,
|
|
|
|
#[schema(min = 0., max = 90., step = 0.1, gui = "UpDown")]
|
|
pub top: f32,
|
|
|
|
#[schema(min = 0., max = 90., step = 0.1, gui = "UpDown")]
|
|
pub bottom: f32,
|
|
}
|
|
|
|
#[derive(SettingsSchema, Serialize, Deserialize, Clone)]
|
|
pub enum OpenvrPropValue {
|
|
Bool(bool),
|
|
Float(f32),
|
|
Int32(i32),
|
|
Uint64(u64),
|
|
Vector3([f32; 3]),
|
|
Double(f64),
|
|
String(String),
|
|
}
|