Skip to content

A tool to generate C# for your S&box gamemode's input actions

License

Notifications You must be signed in to change notification settings

peter-r-g/Sbox-InputActionsGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Input Actions Generator

A tool to generate C# for your S&box gamemode's input actions.

What this does

This tool takes a gamemode package and reads its input settings. From that it constructs a C# class of input action data that can be used in your gamemode's code-base. The data contains the following items:

  • Name - The name you gave the input, used in Input.* calls.
  • GroupName - The name you gave to group the input with others.
  • KeyboardCode - The keyboard code you gave the input as a string.
  • GamepadCode - The gamepad code you gave the input as a Gamepad.Code.

This data is implicitly converted to its name so that it can be used seamlessly with the Input API.

Feature Showcase

2023-06-01.23-58-15_Trim.mp4

Installation

You can install the tool by downloading this repo or using Xeznos Tool Manager

License

Distributed under the MIT License. See the license for more information.