01-27-2019, 04:16 AM
(This post was last modified: 01-27-2019, 08:03 AM by JaumeAlcazo.)
Still having some trouble.
Changed this as well:
I think this changes as well:
instead of [input & 0xF]. Because 0xF --> 15 and 0x1F --> 31
But at you sure this shift doesn't change?
I'm pretty sure the culprit is this shift: 1 << input
I traced all the flow of the program until this. Desperately and without knowing what I was doing I tried without the shift or other numbers or other shifting directions but it doesn't work,
I don't quite understand what is going on with that specific shift
Could you please be so kind tell me how this 1 << input changes as well to allow for 32 inputs max?
I appreciate your help a lot. Thank you for your time and patience.
Changed this as well:
Code:
#define MAX_INPUTS 32
I think this changes as well:
Code:
void TLN_DefineInputKey (TLN_Player player, TLN_Input input, uint32_t keycode){
player_inputs[player].keycodes[input & 0x1F] = keycode;
}
instead of [input & 0xF]. Because 0xF --> 15 and 0x1F --> 31
But at you sure this shift doesn't change?
I'm pretty sure the culprit is this shift: 1 << input
Code:
player_inputs[player].inputs |= (1 << input);
I traced all the flow of the program until this. Desperately and without knowing what I was doing I tried without the shift or other numbers or other shifting directions but it doesn't work,
I don't quite understand what is going on with that specific shift

I appreciate your help a lot. Thank you for your time and patience.