Closed thacoon closed 5 years ago
Hi,
Use TLN_DefineInputKey
after TLN_CreateWindow
@thacoon : daltomi is right, you must setup keys AFTER creating the window, because the input mapping is part of the windowing subsystem, not the rendering core itself. When the window is created, it sets default bindings for player 1.
Changing an input key for PLAYER1 is currently not working. I can change INPUT_UP for PLAYER2 to e. But for PLAYER1 the INPUT_UP remains the upper arrow and not the w key.
Example code: