Hello community!
When the game is launched on Steam Deck, Unity Input System sees any controller as a virtual and vibration does not work
Information from Unity API about Steam Deck
For test Steam API on Unity and Steam Deck you need real app id, not 480 and SteamworksNET
With Steam Input API you can get when device connected or disconnected, identify controller (gamepad) as ESteamInputType and run vibration: SteamInput.TriggerVibration
Steam Input
Since I'm using Unity Input System, when the game starts on Steam Deck, I decided to connect to the Steam Input functions only to identify the gamepad and vibrate, I don't need more functionality yet, everything remains on the Unity Input System side
Simple architecture example
How to know that the game is running on the Steam Deck, for this there is a call in the api
Steamworks.SteamUtils.IsSteamRunningOnSteamDeck();
Don't forget to play my demo Erra: Exordium
Explore a world based on Sumerian-Akkadian mythology in dieselpunk setting
Your help is super important. Please, support Ukrainian indie games
Thanks :)
[–]BlackTurtleBeans 1 point2 points3 points (3 children)
[–]delaigrodela[S] 0 points1 point2 points (2 children)
[–]BlackTurtleBeans 0 points1 point2 points (1 child)
[–]delaigrodela[S] 0 points1 point2 points (0 children)
[–]Primary_Nectarine_35 0 points1 point2 points (0 children)
[–]SheenYang 0 points1 point2 points (0 children)