Initial
This commit is contained in:
1 parent
2cff35f215
commit
49e10bb398
357 files changed
+253936
-74
No files matched your search
@@ -0,0 +1,21 @@
|
||||
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub(super) enum XInputRoute {
|
||||
Gameplay,
|
||||
MenuOnly,
|
||||
Off,
|
||||
}
|
||||
|
||||
impl XInputRoute {
|
||||
pub(super) fn for_poll(dualsense_only: bool, native_mouse: bool, mnk_bindings: bool) -> Self {
|
||||
if dualsense_only {
|
||||
Self::Off
|
||||
} else if !native_mouse && mnk_bindings {
|
||||
Self::MenuOnly
|
||||
} else {
|
||||
Self::Gameplay
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user