Hello,
I am writing console RPG game. Mainly is prototype, cause I will remake it using SDL2 and OpenGL.
But for now I am planning to stick to ncurses library, for input and rendering in console.
I am using getch() function for input, but it is blocking, so If I have something like bullet objects, it moves only then some input is entered. So I need something like in SDL2 polling events.
Know all I have in input function:
void PlayState::input(Game* game)
{
game->currentInput = getch(); //blocking input
}
Any help is appreciated. But I prefer to use ncurses for input.