From 7c62042af2374a5a98767cbb2ef628348d9a872a Mon Sep 17 00:00:00 2001 From: Herman Groenenboom Date: Fri, 7 Apr 2023 10:52:41 +0200 Subject: [PATCH] Make SteamEnums.InputActionOrigin public and update Generator accordingly to do this automatically in the future InputActionOrigin is required on the user side so the user can check whether the action origin has changed. This is cheaper than continuously requesting the action glyph. In addition the user requires the action origin to be able to supply their own icons. --- Facepunch.Steamworks/Generated/SteamEnums.cs | 2 +- Generator/Cleanup.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Facepunch.Steamworks/Generated/SteamEnums.cs b/Facepunch.Steamworks/Generated/SteamEnums.cs index f7264c8..29db30f 100644 --- a/Facepunch.Steamworks/Generated/SteamEnums.cs +++ b/Facepunch.Steamworks/Generated/SteamEnums.cs @@ -1057,7 +1057,7 @@ namespace Steamworks // // EInputActionOrigin // - internal enum InputActionOrigin : int + public enum InputActionOrigin : int { None = 0, SteamController_A = 1, diff --git a/Generator/Cleanup.cs b/Generator/Cleanup.cs index 3414c58..21bac2d 100644 --- a/Generator/Cleanup.cs +++ b/Generator/Cleanup.cs @@ -152,6 +152,7 @@ public static class Cleanup if ( name == "TextFilteringContext" ) return "public"; if ( name == "GlyphSize" ) return "public"; if ( name == "TextInputMode" ) return "public"; + if ( name == "InputActionOrigin" ) return "public"; return "internal"; }