Skip to content

Commit

Permalink
client: register joysupported cvar to be able to use gamepads on HL25 (
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross authored Dec 21, 2024
1 parent bd25ac0 commit 810cd60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cl_dll/input_goldsource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1614,6 +1614,11 @@ void GoldSourceInput::IN_Init (void)
joy_wwhack1 = gEngfuncs.pfnRegisterVariable ( "joywwhack1", "0.0", 0 );
joy_wwhack2 = gEngfuncs.pfnRegisterVariable ( "joywwhack2", "0.0", 0 );

// HL25 checks this cvar and if it doesn't exist or set to zero
// it will lock any usage of gamepads
// see: https://github.com/ValveSoftware/halflife/issues/3621
gEngfuncs.pfnRegisterVariable( "joysupported", "1", 0 );

m_customaccel = gEngfuncs.pfnRegisterVariable ( "m_customaccel", "0", FCVAR_ARCHIVE );
m_customaccel_scale = gEngfuncs.pfnRegisterVariable ( "m_customaccel_scale", "0.04", FCVAR_ARCHIVE );
m_customaccel_max = gEngfuncs.pfnRegisterVariable ( "m_customaccel_max", "0", FCVAR_ARCHIVE );
Expand Down

0 comments on commit 810cd60

Please sign in to comment.