06-09-2018, 02:35 AM
Thanks Marc.
I tried to override the default behaviour of esc key. By default it closes the program but I want it to close my current screen (map) so I've done:
TLN_DefineInputKey(PLAYER1,INPUT_BUTTON5,SDLK_ESCAPE);
and then check for input on BUTTON5 in the main loop. But it doesn't work. I see the default behavior for esc key.
I tried to override the default behaviour of esc key. By default it closes the program but I want it to close my current screen (map) so I've done:
TLN_DefineInputKey(PLAYER1,INPUT_BUTTON5,SDLK_ESCAPE);
and then check for input on BUTTON5 in the main loop. But it doesn't work. I see the default behavior for esc key.