.function = steam_set_achievemnt_test
});
+ vg_info( "Checking controller type\n" );
+
+ ISteamInput *hInput = SteamAPI_SteamInput();
+ SteamAPI_ISteamInput_Init( hInput, 0 );
+ SteamAPI_ISteamInput_RunFrame( hInput, 0 );
+ InputHandle_t joy0 = SteamAPI_ISteamInput_GetControllerForGamepadIndex(
+ hInput, 0 );
+
+ if( joy0 != 0 )
+ {
+ ESteamInputType type = SteamAPI_ISteamInput_GetInputTypeForHandle(
+ hInput, joy0 );
+
+ if( type == k_ESteamInputType_SteamController )
+ vg.gamepad_use_trackpad_look = 1;
+
+ vg_info( "Type: %d\n", type );
+ }
+ else
+ {
+ vg_warn( "none found\n" );
+ }
+
#endif
/* TODO: On username update callback */