1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-29 03:33:48 +00:00
This commit is contained in:
fgenesis 2020-08-11 12:59:50 +02:00
parent af711f00b5
commit 262c8d3870
2 changed files with 1 additions and 4 deletions

View file

@ -1275,7 +1275,6 @@ void Core::pollEvents(float dt)
joysticks[i]->update(dt);
// all input done; update button states
//updateActionButtons();
rawInput.update();
}

View file

@ -33,9 +33,7 @@ void InputMapperRaw::input(const RawInput *inp)
// so we don't lose button presses that are shorter than 1 frame.
unsigned char ch = !!inp->u.pressed;
keyChanged[idx] |= (keyState[idx] != ch) << 1; // bit 1 becomes bit 0 in next frame
keyState[idx] |= ch;
keyState[idx] = ch;
}
void InputMapperRaw::update()