You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested on iTerm2.app and Terminal.app on OSX Catalina.
I couldn't get they arrow keys (Clang++ std=c++2a) using rlutil::getKey().
Multiple ANSI character sequences don't get handled properly because cnt variable is 0 and the ^[[A sequence in my game loop is split in multiple calls of rlutil::getKey()
As a result I never get rlutil::getKey() to equal rlutil::KEY_UP
The text was updated successfully, but these errors were encountered:
I got the arrows working by wrapping the update function of my game loop in an if(kbhit()) before the rlutil::getKey. I thought the rlutil::getKey already had a call to kbhit() without requiring an additional one, weird.
Anyway with this if(kbhit()) the arrows work but the ENTER key does not :/
Tested on iTerm2.app and Terminal.app on OSX Catalina.
I couldn't get they arrow keys (Clang++ std=c++2a) using rlutil::getKey().
Multiple ANSI character sequences don't get handled properly because cnt variable is 0 and the
^[[A
sequence in my game loop is split in multiple calls of rlutil::getKey()As a result I never get rlutil::getKey() to equal rlutil::KEY_UP
The text was updated successfully, but these errors were encountered: