/*
- * Copyright (C) 2021-2022 Mt.ZERO Software, Harry Godden - All Rights Reserved
+ * Copyright (C) 2021-2023 Mt.ZERO Software, Harry Godden - All Rights Reserved
* All trademarks are property of their respective owners
*/
#include "vg/vg_steam_http.h"
#include "vg/vg_steam_friends.h"
#include "vg/vg_steam_user_stats.h"
+#include "submodules/anyascii/impl/c/anyascii.c"
+
+enum steam_controller_type{
+ k_steam_controller_type_keyboard,
+ k_steam_controller_type_xbox,
+ k_steam_controller_type_playstation,
+ k_steam_controller_type_steam,
+ k_steam_controller_type_steam_deck
+};
+
+VG_STATIC enum steam_controller_type steam_display_controller;
/*
* We only want to use steamworks if building for the networked version,
if( type == k_ESteamInputType_SteamController ){
vg_input.controller_should_use_trackpad_look = 1;
- menu_display_controller = k_menu_controller_type_steam;
+ steam_display_controller = k_steam_controller_type_steam;
}
else if( type == k_ESteamInputType_SteamDeckController ){
- menu_display_controller = k_menu_controller_type_steam_deck;
+ steam_display_controller = k_steam_controller_type_steam_deck;
}
else if( type == k_ESteamInputType_PS3Controller ||
type == k_ESteamInputType_PS4Controller ||
type == k_ESteamInputType_PS5Controller )
{
- menu_display_controller = k_menu_controller_type_playstation;
+ steam_display_controller = k_steam_controller_type_playstation;
}
else if( type == k_ESteamInputType_XBox360Controller ||
type == k_ESteamInputType_XBoxOneController )
{
- menu_display_controller = k_menu_controller_type_xbox;
+ steam_display_controller = k_steam_controller_type_xbox;
}
else{
/* currently unsupported controller */
- menu_display_controller = k_menu_controller_type_xbox;
+ steam_display_controller = k_steam_controller_type_xbox;
}
}
else
- menu_display_controller = k_menu_controller_type_keyboard;
+ steam_display_controller = k_steam_controller_type_keyboard;
}
}
}