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

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::gui
 Graphical User Interface (GUI) components for the application.
 

Enumerations

enum class  yaze::gui::Platform {
  yaze::gui::kWindows , yaze::gui::kMacOS , yaze::gui::kLinux , yaze::gui::kWebMac ,
  yaze::gui::kWebOther
}
 Runtime platform detection for display string customization. More...
 

Functions

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.
 
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.
 
const char * yaze::gui::GetKeyName (ImGuiKey key)
 Get the ImGui key name as a string.