-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add normal dualsense variant, refactor output code, switch dualsense …
…name to default
- Loading branch information
Showing
11 changed files
with
134 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
default: dualsense | ||
modes: | ||
# | ||
# No emulation | ||
# | ||
disabled: | ||
type: container | ||
tags: [lgc_emulation_disabled] | ||
title: Disabled | ||
hint: >- | ||
Does not modify the default controller. | ||
# | ||
# evdev through uinput | ||
# | ||
uinput: | ||
type: container | ||
tags: [lgc_emulation_uinput, uinput] | ||
title: Virtual Controller | ||
hint: >- | ||
Creates a virtual `Handheld Daemon Controller` that can be used normally | ||
in apps. Back buttons are supported but steam will not detect them. | ||
If Gyroscope or Accelerometer are enabled, a Motion device will be | ||
created as well (experimental; works in Dolphin). | ||
# | ||
# Dual Sense 5 | ||
# | ||
dualsense: | ||
type: container | ||
tags: [lgc_emulation_dualsense, dualsense] | ||
title: Dualsense | ||
hint: >- | ||
Emulates the expensive Dualsense Sony controller, both Edge and non-edge | ||
variants. | ||
children: | ||
led_support: | ||
type: bool | ||
title: LED Support | ||
hint: >- | ||
Passes through the LEDs to the controller, which allows games | ||
to control them. | ||
default: True | ||
|
||
bluetooth_mode: | ||
type: bool | ||
title: Bluetooth Mode | ||
hint: >- | ||
Emulates the controller in bluetooth mode instead of USB mode. | ||
This is the default as it causes less issues with how apps | ||
interact with the controller. | ||
However, using USB mode can improve LED support (?) in some games. | ||
Test and report back! | ||
default: True | ||
|
||
edge_mode: | ||
type: bool | ||
title: Edge Mode | ||
hint: >- | ||
Uses the edge product ID which enables paddle support. | ||
The edge controller is a bit obscure, so some games might not | ||
support it correctly. | ||
You can disable this to use normal Dualsense (no paddle support). | ||
default: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
def get_relative_fn(fn: str): | ||
"""Returns the directory of a file relative to the script calling this function.""" | ||
import inspect | ||
import os | ||
|
||
script_fn = inspect.currentframe().f_back.f_globals["__file__"] # type: ignore | ||
dirname = os.path.dirname(script_fn) | ||
return os.path.join(dirname, fn) | ||
|
||
|
||
def load_relative_yaml(fn: str): | ||
"""Returns the yaml data of a file in the relative dir provided.""" | ||
import inspect | ||
import os | ||
import yaml | ||
|
||
script_fn = inspect.currentframe().f_back.f_globals["__file__"] # type: ignore | ||
dirname = os.path.dirname(script_fn) | ||
with open(os.path.join(dirname, fn), "r") as f: | ||
return yaml.safe_load(f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters