I have a Snake game in terminal, it works well with WASD control, but i want to add ЦФЫВ control(this is Cyrillic symbols). Here is example of code
int keyBoard;
switch (keyBoard = _getch()) {
case 'ы':
y = y + 1;
Moves[movesCount] = Dir::DOWN;
movesCount++;
if (isTrail != Trail::FALSE) {
// changeTrail();
}
break;
}
In this version it didn't work: i just push the buttons and nothing works. I tried to change my encoding to Cyrillic and UTF-8 with BOM, bit it wasn't help me. May be you can?