philippj / SteamworksPy

A working Python API system for Valve's Steamworks.
MIT License
212 stars 39 forks source link

Add SteamInput's SetInputActionManifestFilePath #89

Open zhulik opened 1 year ago

zhulik commented 1 year ago

The method is not documented in steamworks docs. It allows one to provide SteamInput with a vdf manifest describing controller actions.

It is extremely useful when you are not a real steam developer, but still want to play with steam input on your steam deck

Usage:

if not STEAMWORKS.Input.SetInputActionManifestFilePath(ABSOLUTE_PATH_TO_VDF_FILE):
    raise InitError("cannot load vdf")

Any ways we can build it on CI? I mean can we legally use the steamworks SDK for it?

philippj commented 1 year ago

Hey @zhulik,

Adding this function is not a problem. I will have to review your makefile changes to check for cross-platform compatibility though.

CI is currently not set up as the Steamworks source files can not be re-published. At least to the last time I contacted them about it, so I will gonna push out a new release after checking everything.

Thank you for the PR!

zhulik commented 1 year ago

@philippj the Makefile is linux-specific anyway, my change just asks make to only compile the so when the cpp file changes