06-04-2018, 07:47 PM
Hello, the TLN_Input enum doesn't allow us to use keys other than arrows for player movement
enum TLN_Input {
INPUT_NONE, INPUT_UP,INPUT_DOWN, INPUT_LEFT,
INPUT_RIGHT,INPUT_BUTTON1,INPUT_BUTTON2,INPUT_BUTTON3,
INPUT_BUTTON4,INPUT_BUTTON5,INPUT_BUTTON6,INPUT_START,
INPUT_P1 = (PLAYER1 << 4),INPUT_P2 = (PLAYER2 << 4),INPUT_P3 = (PLAYER3 << 4),INPUT_P4 = (PLAYER4 << 4)
}
I would like to use WASD in addition to arrows, so I request INPUT_W, INPUT_A, INPUT_S and INPUT_D ooooh boy,
OOOk, now I see this:
TLNAPI void TLN_DefineInputKey (TLN_Playerplayer, TLN_Input input, uint32_t keycode)
Ok, I'll check this.
enum TLN_Input {
INPUT_NONE, INPUT_UP,INPUT_DOWN, INPUT_LEFT,
INPUT_RIGHT,INPUT_BUTTON1,INPUT_BUTTON2,INPUT_BUTTON3,
INPUT_BUTTON4,INPUT_BUTTON5,INPUT_BUTTON6,INPUT_START,
INPUT_P1 = (PLAYER1 << 4),INPUT_P2 = (PLAYER2 << 4),INPUT_P3 = (PLAYER3 << 4),INPUT_P4 = (PLAYER4 << 4)
}
I would like to use WASD in addition to arrows, so I request INPUT_W, INPUT_A, INPUT_S and INPUT_D ooooh boy,
OOOk, now I see this:
TLNAPI void TLN_DefineInputKey (TLN_Playerplayer, TLN_Input input, uint32_t keycode)
Ok, I'll check this.