Skip to content

Commit

Permalink
Added Czech Virtual Keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeK1ng authored Oct 15, 2024
1 parent 5e86ba1 commit 88c5068
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/fheroes2/gui/ui_keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ namespace
case fheroes2::SupportedLanguage::Polish:
case fheroes2::SupportedLanguage::Russian:
case fheroes2::SupportedLanguage::Slovak:
case fheroes2::SupportedLanguage::Czech:
case fheroes2::SupportedLanguage::Ukrainian:
return true;
default:
Expand Down Expand Up @@ -288,6 +289,7 @@ namespace
case fheroes2::SupportedLanguage::Polish:
case fheroes2::SupportedLanguage::Russian:
case fheroes2::SupportedLanguage::Slovak:
case fheroes2::SupportedLanguage::Czech:
case fheroes2::SupportedLanguage::Ukrainian:
return { "1234567890", "-:;()_+=", "[].,!'?" };
default:
Expand All @@ -310,6 +312,8 @@ namespace
return { "\xC9\xD6\xD3\xCA\xC5\xCD\xC3\xD8\xD9\xC7\xD5\xDA", "\xD4\xDB\xC2\xC0\xCF\xD0\xCE\xCB\xC4\xC6\xDD", "\xDF\xD7\xD1\xCC\xC8\xD2\xDC\xC1\xDE\xA8" };
case fheroes2::SupportedLanguage::Slovak:
return { "\xCF\xBC\x8A\xC8\x8D\x8E\xDD\xC1\xCD\xC9\xD3", "QWERTZUIOP\xDA", "ASDFGHJKL\xD4\xD2", "\xC4YXCVBNM\xC5\xC0" };
case fheroes2::SupportedLanguage::Czech:
return { "\xCC\x8A\xC8\xD8\x8E\xDD\xC1\xCD\xC9", "QWERTZUIOP\xDA", "ASDFGHJKL\xD9", "YXCVBNM" };
case fheroes2::SupportedLanguage::Ukrainian:
return { "\xC9\xD6\xD3\xCA\xC5\xCD\xC3\xD8\xD9\xC7\xD5\xAF", "\xD4\xB2\xC2\xC0\xCF\xD0\xCE\xCB\xC4\xC6\xAA", "\xDF\xD7\xD1\xCC\xC8\xD2\xDC\xC1\xDE\xA5" };
default:
Expand All @@ -332,6 +336,8 @@ namespace
return { "\xE9\xF6\xF3\xEA\xE5\xED\xE3\xF8\xF9\xE7\xF5\xFA", "\xF4\xFB\xE2\xE0\xEF\xF0\xEE\xEB\xE4\xE6\xFD", "\xFF\xF7\xF1\xEC\xE8\xF2\xFC\xE1\xFE\xB8" };
case fheroes2::SupportedLanguage::Slovak:
return { "\xEF\xBE\x9A\xE8\x9D\x9E\xFD\xE1\xED\xE9\xF3", "qwertzuiop\xFA", "asdfghjkl\xF4\xF2", "\xE4yxcvbnm\xE5\xE0" };
case fheroes2::SupportedLanguage::Czech:
return { "\xEC\x9A\xE8\xF8\xBE\xFD\xE1\xED\xE9", "qwertzuiop\xFA", "asdfghjkl\xF9", "yxcvbnm" };
case fheroes2::SupportedLanguage::Ukrainian:
return { "\xE9\xF6\xF3\xEA\xE5\xED\xE3\xF8\xF9\xE7\xF5\xBF", "\xF4\xB3\xE2\xE0\xEF\xF0\xEE\xEB\xE4\xE6\xBA", "\xFF\xF7\xF1\xEC\xE8\xF2\xFC\xE1\xFE\xB4" };
default:
Expand Down Expand Up @@ -376,6 +382,7 @@ namespace
return 30;
case fheroes2::SupportedLanguage::Russian:
case fheroes2::SupportedLanguage::Slovak:
case fheroes2::SupportedLanguage::Czech:
case fheroes2::SupportedLanguage::Ukrainian:
return 24;
default:
Expand Down Expand Up @@ -499,6 +506,7 @@ namespace
case fheroes2::SupportedLanguage::Polish:
case fheroes2::SupportedLanguage::Russian:
case fheroes2::SupportedLanguage::Slovak:
case fheroes2::SupportedLanguage::Czech:
case fheroes2::SupportedLanguage::Ukrainian:
addExtraStandardButtons( buttons, layoutType, isEvilInterface, isExtraLanguageSupported, language );
break;
Expand Down

0 comments on commit 88c5068

Please sign in to comment.