X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=steam.h;h=969f632aadeb0500de27fe474f72ee63efb03794;hb=be8ea6efdbfd9c0fdad97401ed7d92041d8c8778;hp=7bd0ab84a42bed5ae86d7695066cd306d2ef12ce;hpb=f99902f513b0ad606437bf32de47405dd4ea5f98;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/steam.h b/steam.h index 7bd0ab8..969f632 100644 --- a/steam.h +++ b/steam.h @@ -1,5 +1,5 @@ /* - * 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 */ @@ -14,6 +14,17 @@ #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, @@ -295,29 +306,29 @@ VG_STATIC void steam_update(void) 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; } } }