TheDeadSnake / LC-Touchscreen

A LethalCompany monitor mod
0 stars 0 forks source link

SwitchAlternative won't register when ReverseSwitch is enabled #16

Closed MaxOhNoo closed 8 months ago

MaxOhNoo commented 8 months ago

Launched via Thunderstore 1.37.1 BepInExPack v5.4.2100 Touchscreen v1.0.8 No other mods

With ReverseSwitch disabled, SwitchAlternative will register just fine, and my radar returns to the previous target as intended With ReverseSwitch enabled, the radar does not respond to SwitchAlternative at all.

Config file (me.pm.TheDeadSnake.cfg)

## Settings file was created by plugin TouchScreen v1.0.8
## Plugin GUID: me.pm.TheDeadSnake

[Features]

## Set if other plugins can disable / enable the Touchscreen feature.
##  > "true": Other plugins can no longer toggle it
##  > "false": Other plugins may disable / enable it
# Setting type: Boolean
# Default value: false
IgnoreOverride = false

[Layout]

## Name of the key mapping for the primary (switch, ping, trigger) actions
## Allowed value format: "<Keyboard>/KEY", "<Mouse>/BUTTON", "<Gamepad>/BUTTON"
## Examples: "<Keyboard>/f" "<Mouse>/leftButton" "<Gamepad>/buttonNorth"
## For in depth instructions see: https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/api/UnityEngine.InputSystem.InputControlPath.html
# Setting type: String
# Default value: <Keyboard>/e
Primary = <Mouse>/leftButton

## Name of the key mapping for the secondary (Flash) action
## Allowed value format: "<Keyboard>/KEY", "<Mouse>/BUTTON", "<Gamepad>/BUTTON"
## Examples: "<Keyboard>/g" "<Mouse>/rightButton" "<Gamepad>/buttonWest"
## For in depth instructions see: https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/api/UnityEngine.InputSystem.InputControlPath.html
# Setting type: String
# Default value: <Mouse>/leftButton
Secondary = <Mouse>/rightButton

## Name of the key mapping for the quick switch action
## Allowed value format: "<Keyboard>/KEY", "<Mouse>/BUTTON", "<Gamepad>/BUTTON"
## Examples: "<Keyboard>/g" "<Mouse>/rightButton" "<Gamepad>/buttonWest"
## For in depth instructions see: https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/api/UnityEngine.InputSystem.InputControlPath.html
# Setting type: String
# Default value: 
Switch = <Keyboard>/e

## Decides what the "SwitchAlternative" does when pressed
## true: When the alternative key is pressed, the quick switch will go through the reverse order
## false: When the alternative key is pressed the previous radar target will be selected
# Setting type: Boolean
# Default value: true
ReverseSwitch = false

## Name of the key mapping for the alternative quick switch action
## The behaviour of the key is dependent on the "ReverseSwitch" option
## Allowed value format: "<Keyboard>/KEY", "<Mouse>/BUTTON", "<Gamepad>/BUTTON"
## Examples: "<Keyboard>/g" "<Mouse>/rightButton" "<Gamepad>/buttonWest"
## For in depth instructions see: https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/api/UnityEngine.InputSystem.InputControlPath.html
# Setting type: String
# Default value: 
SwitchAlternative = <Keyboard>/q

[UI]

## Accepts a file name relative to the plugin name or a full system path
## You can either choose one of the three default icons "HoverIcon.png", "CrossIcon.png", "DotIcon.png" or
## create your own (Only .png and .jpg are supported) and place it in: C:\Users\Max\AppData\Roaming\Thunderstore Mod Manager\DataFolder\LethalCompany\profiles\Test\BepInEx\plugins\TheDeadSnake-Touchscreen
## Examples: "HoverIcon.png" or "X:\Images\SomeImage.png"
# Setting type: String
# Default value: HoverIcon.png
PointerIcon = HoverIcon.png

## Enable / Disable the keybind tooltip when hovering over the monitor
# Setting type: Boolean
# Default value: true
ShowTooltip = true
TheDeadSnake commented 8 months ago

If ReverseSwitch is enabled the SwitchAlternative does nothing on it's own, instead it inverts the behaviour of the Switch button.

A common use case would be: > Switch forward: Q (Switch) > Switch backwards: Shift + Q (SwitchAlternative + Switch) In this case, ReverseSwitch is enabled and SwitchAlternative is set to the shift key.

However, if ReverseSwitch is disabled SwitchAlternative will simply switch backwards on it's own without the need of pressing another key.

MaxOhNoo commented 8 months ago

Guess I didn't read the config notes close enough. Sorry for wasting your time, thanks for making this cool mod.