Skip to content

Commit

Permalink
Update sdl_input_nx.c
Browse files Browse the repository at this point in the history
Vague idea for some type of quick & dirty gyro yaw axis fix. Literally does nothing.
  • Loading branch information
Faith Lain Void committed Oct 13, 2021
1 parent 6ad326d commit ebbd2c0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions code/sdl/sdl_input_nx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,18 @@ static void IN_ProcessEvents( void )
Cvar_SetValue( "r_customheight", height );
Cvar_Set( "r_mode", "-1" );

// WIP Quick and dirty yaw axis fix.

if (HidNpadIdType_Handheld)
{
Cvar_Set( "in_gyromouse_yaw_axis", "0" );
}
else
{
Cvar_Set( "in_gyromouse_yaw_axis", "1" );
}


// Wait until user stops dragging for 1 second, so
// we aren't constantly recreating the GL context while
// he tries to drag...
Expand Down

0 comments on commit ebbd2c0

Please sign in to comment.