Files
WoWee/include/core/macos_platform.hpp
Kelsi 3139896401 docs: changelog entries for v2.0.30-preview and v2.0.31-preview
The open v2.0.29-preview section had been collecting entries as work
landed, but stopped at the terrain-seam fix; everything after it went
unrecorded. Adds the two missing sections: rendering (brightness multiply
over water, FSR3 16-bit storage, validation-layer env var), bank and guild
bank, crafting, quests, GM tools, and the two changes since.

Also narrows a comment in macos_platform.hpp -- W takes no diacritics.
2026-07-24 18:25:51 -07:00

29 lines
880 B
C++

#pragma once
#ifdef __APPLE__
namespace wowee {
namespace core {
/**
* Suppress the macOS press-and-hold accent popup for this process.
*
* SDL2 leaves text input enabled for the whole session (SDL_VideoInit calls
* SDL_StartTextInput when there's no screen keyboard), so AppKit routes key
* events through NSTextInputContext even during normal gameplay. Holding a
* key that takes diacritics — A, S, E, and friends — then opens the accent
* chooser instead of repeating the key.
*
* Registering ApplePressAndHoldEnabled=NO restores plain key repeat. The
* value lands in NSUserDefaults' registration domain, so it applies only to
* this process and never writes to the user's saved preferences.
*
* Must be called before SDL_Init brings up NSApplication.
*/
void disablePressAndHoldAccents();
} // namespace core
} // namespace wowee
#endif // __APPLE__