DeviceHaptics task
This commit is contained in:
@@ -8,6 +8,7 @@ use std::{
|
||||
use serde::Deserialize;
|
||||
|
||||
use crate::{
|
||||
backend::input,
|
||||
state::AppState,
|
||||
windowing::{OverlaySelector, window::OverlayWindowConfig},
|
||||
};
|
||||
@@ -43,6 +44,13 @@ impl Ord for AppTask {
|
||||
}
|
||||
}
|
||||
|
||||
pub enum InputTask {
|
||||
Haptics {
|
||||
device: usize,
|
||||
haptics: input::Haptics,
|
||||
},
|
||||
}
|
||||
|
||||
#[cfg(feature = "openvr")]
|
||||
pub enum OpenVrTask {
|
||||
ColorGain(ColorChannel, f32),
|
||||
@@ -87,6 +95,7 @@ pub enum OverlayTask {
|
||||
}
|
||||
|
||||
pub enum TaskType {
|
||||
Input(InputTask),
|
||||
Overlay(OverlayTask),
|
||||
Playspace(PlayspaceTask),
|
||||
#[cfg(feature = "openvr")]
|
||||
|
||||
Reference in New Issue
Block a user