rodecomp/Source/Client/Input/LanguageTC.h
ragnarok-clanker bf37a5bd1f Maintenance: [forced, user-approved] CLanguage step 1 (resubmit of #10178): g_serverLanguage (0x16D3B0C) points to CLanguage with a 1
Batch #10179 by ragnarok-clanker: forced by an admin (0 lower score(s), 2 changed function(s)); checked with 55 compiled unit(s), including every includer of Source/Client/Input/InputCharset.h, Source/Client/Input/LanguageTC.h.
2026-11-02 19:20:05 +00:00

37 lines
940 B
C++

#ifndef RAGNAROK_SOURCE_CLIENT_INPUT_LANGUAGETC_H
#define RAGNAROK_SOURCE_CLIENT_INPUT_LANGUAGETC_H
#include <array>
#include <cstdint>
#include <list>
#include <string>
struct TraditionalKeyMapping {
/* 0000 */ std::uint8_t category;
/* 0001 */ std::uint8_t bytes[3];
};
struct CLanguageTC {
std::list<std::uint8_t>& keys;
std::array<TraditionalKeyMapping, 256>& mappings;
std::string& display;
std::uint8_t& unknown04C1;
void InitializeMappings();
void Key(int virtualKey);
const char* Display();
const char* DisplayText() const;
int DisplayLength() const;
const char* NextChar(const char* current, int unused);
const char* NextCharArabic(const char* current, int unused);
int GetKeyStrokeSize() const;
void ClearKeys();
void ResetState();
void ResetCandidate();
void RetainSingleKey();
void FilterCandidate(std::string& candidate);
};
static_assert(sizeof(TraditionalKeyMapping) == 4);
#endif