Commit graph

45 commits

Author SHA1 Message Date
Kamil Trzciński d9877e5491 Reduce hold for Toggle desktop mode to 2s 2022-11-29 00:17:02 +01:00
Kamil Trzciński 3176ac09dc Fix Process Kill action 2022-11-29 00:17:02 +01:00
Kamil Trzciński 6ea0329cbb Improve profile selection to remove special handling of IsDesktop 2022-11-29 00:17:02 +01:00
Kamil Trzciński 44e5751d75 The X360.Beep() is implemented as a separate device 2022-11-28 20:31:38 +01:00
Kamil Trzciński 558d37e940 Make code lock-less on critical path 2022-11-28 20:31:37 +01:00
Kamil Trzciński 190b14e66f Improve SteamConfiguration performance 2022-11-28 20:28:21 +01:00
Kamil Trzciński 3c209f04b4 Reduce memory allocations in KeyboardController 2022-11-28 19:33:47 +01:00
Kamil Trzciński e683915a2c Provide currated list of mapping keys (for keyboard) 2022-11-28 19:33:43 +01:00
Kamil Trzciński f261424932 Fix crash on resume when X360 Controller is in use 2022-11-28 17:33:22 +01:00
Kamil Trzciński 76408ce20b Fix crash on startup when Steam is missing
Fixes https://github.com/ayufan/steam-deck-tools/issues/11
2022-11-28 13:08:46 +01:00
Kamil Trzciński 540e9ed758 Setting Keyboard[KEY] = false and Mouse[KEY] = false does not cancel the press 2022-11-28 11:40:37 +01:00
Kamil Trzciński 370dd89750 Properly apply X360 mappings for Back Panel keys 2022-11-28 11:36:34 +01:00
Kamil Trzciński 76c93c81e5 Fix AccessDenied in Steam Detection 2022-11-28 11:11:30 +01:00
Kamil Trzciński e52459d02d Do not send repeated haptic if disabled 2022-11-28 11:05:30 +01:00
Kamil Trzciński 7bb6aa0460 Improve implementation of MouseController 2022-11-28 10:46:07 +01:00
Kamil Trzciński 9a286691f4 Use high-precision timer for DeltaTime 2022-11-28 10:46:07 +01:00
Kamil Trzciński 68f51ff4f0 Add configurable BackPanel keys (allowed mappings are subject to change) 2022-11-28 09:34:55 +01:00
Kamil Trzciński d4392dd47c Append controller_blacklist to config.vdf if missing 2022-11-27 20:15:04 +01:00
Kamil Trzciński 78b8470d3d Only DPad, A, B, L2 and R2 are Lizard Buttons 2022-11-27 20:01:22 +01:00
Kamil Trzciński ab5c190494 STEAM + 3 dots brings Task Manager (CTRL+SHIFT+ESCAPE) 2022-11-27 19:54:37 +01:00
Kamil Trzciński bdf9d93690 Fix detection of SAS to switch into full lizard 2022-11-27 19:45:14 +01:00
Kamil Trzciński c72128fc5c Fix double presses of A(RETURN)/B(BACKSPACE) in Desktop mode 2022-11-27 19:38:24 +01:00
Kamil Trzciński 738b9b72f6 Increase joystick speed and key repeats in Desktop Mode 2022-11-27 15:32:23 +01:00
Kamil Trzciński aeb035da5d Allow to configure StartupProfile in SteamController.dll.config 2022-11-27 15:01:15 +01:00
Kamil Trzciński 77b3c062b5 STEAM+B will kill foreground process if hold longer than 3s
This will kill the same process that was last time when sending ALT+F4
2022-11-27 14:48:03 +01:00
Kamil Trzciński 7fa9fb38c6 Make Consumed to be String for SteamAction to fix regression with types 2022-11-27 14:48:03 +01:00
Kamil Trzciński 8149bf28c9 Move STEAM+DPadUp into AdditionalShortcuts 2022-11-27 14:48:03 +01:00
Kamil Trzciński 8fb4571b21 Configure Steam to enable or disable Steam/X360 Controllers
- Allow to configure Steam controller blacklisting to enable X360 exclusive mode.
- This allows to switch seemlessly between different modes of operation.
- This also changes how application and when detects Steam.
2022-11-27 14:36:34 +01:00
Kamil Trzciński aafe040e12 Make KeyboardController to generate KeyRepeats 2022-11-27 14:35:49 +01:00
Kamil Trzciński 6da5a9796c Simplify DeltaValueMode 2022-11-27 10:01:27 +01:00
Kamil Trzciński 4c016b33b9 Fix code formatting for DefaultGuideShortcutsProfile 2022-11-27 09:52:31 +01:00
Kamil Trzciński 0aa535800c Move SteamController.SteamAction to SteamAction 2022-11-27 09:52:31 +01:00
Kamil Trzciński 8f69ec772b Improve method visibility 2022-11-27 09:27:19 +01:00
CelesteHeartsong 509bc588a3
Add Steam+DpadUP binding (#8)
* Add Steam+DpadUP binding [ci skip]

Windows on SteamDeck generally needs a hotkey available to use with upscaling applications as many games crash when attempting to render exclusive fullscreen.

Added the following binding:
- Steam + DPadUP = Ctrl+Alt+U

* Include new Steam+DPadUP binding in readme

Added keybind to table list. Included instructions on how the binding can be used to set up a full screen scaling toggle.
2022-11-27 10:26:43 +01:00
Kamil Trzciński 11e056904d Fix LT/RT to trigger up to 50%, instead of 100% 2022-11-27 00:00:59 +01:00
Kamil Trzciński 1c2980976f Hide Use Lizard Mouse/Buttons as it does something different 2022-11-26 23:52:48 +01:00
Kamil Trzciński b977003efa Maybe will show notification on controller changed 2022-11-26 14:48:58 +01:00
Kamil Trzciński 5d653a3342 Remove mouse on RStick in X360 mode 2022-11-26 13:56:17 +01:00
Kamil Trzciński 3947dbc4ec Fix incorrect CurrentProfile in SteamController 2022-11-26 13:56:17 +01:00
Kamil Trzciński bad617549e Add Haptic feedback and selectable profiles 2022-11-26 10:19:50 +01:00
Kamil Trzciński d0b6fb93b0 Revert "Introduce HidHideCLI"
This reverts commit 9fb343430ba3eabf5daa74e2f7bbcc840e923dea.
2022-11-26 10:19:50 +01:00
Kamil Trzciński 6c436633fc Introduce HidHideCLI 2022-11-26 10:19:50 +01:00
Kamil Trzciński ab5bc370df Introduce inheritable Profiles and Managers
- There's always a single Profile choosen
- There are many Managers changing settings
  depending on environment
- Improve and re-use mappings between profiles
- Introduce Steam Profile to be used when
  in Steam Big Picture or Steam Game
2022-11-26 10:19:50 +01:00
Kamil Trzciński 10d6c055da Add Process and Steam detection
- This makes to autmatically swittch to controller
  when Playnite Fullscreen is in use.
- This makes to automatically disable when Steam
  is in Big Picture or running Game
- Indicate current status with well distinguishable icons
- Expose all options via Context Menu
2022-11-26 10:19:50 +01:00
Kamil Trzciński ecbd0407c0 Add SteamController implementation
This adds a Steam Shortcuts, Desktop Mode, and X360 Emulation
- Supports all Steam Shortcuts (including on-screen keyboard, and brightness)
- Supports Desktop mode (with a scroll on left pad and left stick), and trackpoint (on right stick)
- Supports X360 mode: hold Options for 1s to switch between Desktop and X360
- Holding Steam button enables Desktop like controls and stops passing all inputs to X360
2022-11-26 10:19:50 +01:00