yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
platform_keys.cc File Reference
#include "app/gui/core/platform_keys.h"
#include <string>
Include dependency graph for platform_keys.cc:

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::gui
 Graphical User Interface (GUI) components for the application.
 
namespace  yaze::gui::anonymous_namespace{platform_keys.cc}
 

Functions

void yaze::gui::anonymous_namespace{platform_keys.cc}::InitializePlatform ()
 
Platform yaze::gui::GetCurrentPlatform ()
 Get the current platform at runtime.
 
bool yaze::gui::IsMacPlatform ()
 Check if running on macOS (native or web)
 
const char * yaze::gui::GetCtrlDisplayName ()
 Get the display name for the primary modifier key.
 
const char * yaze::gui::GetAltDisplayName ()
 Get the display name for the secondary modifier key.
 
const char * yaze::gui::GetKeyName (ImGuiKey key)
 Get the ImGui key name as a string.
 
std::string yaze::gui::FormatShortcut (const std::vector< ImGuiKey > &keys)
 Format a list of ImGui keys into a human-readable shortcut string.
 
std::string yaze::gui::FormatCtrlShortcut (ImGuiKey key)
 Convenience function for Ctrl+key shortcuts.
 
std::string yaze::gui::FormatCtrlShiftShortcut (ImGuiKey key)
 Convenience function for Ctrl+Shift+key shortcuts.
 

Variables

Platform yaze::gui::anonymous_namespace{platform_keys.cc}::g_cached_platform = Platform::kWindows
 
bool yaze::gui::anonymous_namespace{platform_keys.cc}::g_platform_initialized = false