Skip to content

Source code for GamepadUI for Half-Life 2 and friends.

License

Notifications You must be signed in to change notification settings

FreeCollective/HL2-GamepadUI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Half-Life 2 GamepadUI

What is it?

Source code for the Steam Deck GamepadUI I made used by Half-Life 2, Episode 1, Episode 2 and Portal 1.

It looks like this:

Image of Half-Life 2 main menu with GamepadUI

It's definitely not the cleanest thing in existence, especially as it was pretty rushed for the Steam Deck launch. However, you may be able to get some use out of it.

What is here?

Provided is the full GamepadUI code, as well as the .vpc projects to build it.

You will need to add gamepadui for each game to your projects.vgc and groups.vgc for the Visual Studio, etc projects to be generated.

Also provided is a modified cdll_client_int.cpp with the modifications needed for GamepadUI stuff to work.
Check out the parts that reference GamepadUI and merge them into your codebase.

Lastly, the function PostMessageToAllSiblingsOfType will need to be re-enabled in Panel.h, by removing its associated #if 0 / #endif. Despite the code comment declaring otherwise, this function is safe to compile, and is necessary for GamepadUI to compile.

SDK 2013 Notes

SDK 2013 by default does not have the modifications to the regular GameUI that were made that do things such as hide the main menu logo, or have the new loading screens.
Provided in game/bin is a copy of GameUI for SDK 2013 with the modifications you can use, unfortunately the code for this cannot be provided.

Special thanks to Madi for taking my code and making it compile against SDK 2013.
Thanks to my friend Dan Smith for helping with getting some screenshots for the chapter art.

About

Source code for GamepadUI for Half-Life 2 and friends.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 82.5%
  • ReScript 17.4%
  • C 0.1%