Skip to content

Commit

Permalink
fix ToggleKey
Browse files Browse the repository at this point in the history
  • Loading branch information
Detanup01 authored Nov 17, 2024
1 parent 4bdad79 commit 4868c03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions overlay_experimental/steam_overlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ static constexpr int base_notif_window_id = 0 * max_window_id;
static constexpr int base_friend_window_id = 1 * max_window_id;
static constexpr int base_friend_item_id = 2 * max_window_id;

static const InGameOverlay::ToggleKey overlay_toggle_keys[] overlay_toggle_keys = {
static InGameOverlay::ToggleKey overlay_toggle_keys[] overlay_toggle_keys = {
InGameOverlay::ToggleKey::SHIFT, InGameOverlay::ToggleKey::TAB
};
static const int toggle_keys_count = 2;

// look for the column 'API language code' here: https://partner.steamgames.com/doc/store/localization/languages
static constexpr const char* valid_languages[] = {
Expand Down Expand Up @@ -218,7 +219,7 @@ bool Steam_Overlay::renderer_hook_proc()
overlay_state_hook(state == InGameOverlay::OverlayHookState::Ready || state == InGameOverlay::OverlayHookState::Reset);
};

bool started = _renderer->StartHook(overlay_toggle_callback, overlay_toggle_keys, 2, &fonts_atlas);
bool started = _renderer->StartHook(overlay_toggle_callback, overlay_toggle_keys, toggle_keys_count, &fonts_atlas);
PRINT_DEBUG("started renderer hook (result=%i)", (int)started);

return true;
Expand Down

0 comments on commit 4868c03

Please sign in to comment.