mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 09:44:02 +00:00
oops
This commit is contained in:
parent
af711f00b5
commit
262c8d3870
2 changed files with 1 additions and 4 deletions
|
@ -1275,7 +1275,6 @@ void Core::pollEvents(float dt)
|
|||
joysticks[i]->update(dt);
|
||||
|
||||
// all input done; update button states
|
||||
//updateActionButtons();
|
||||
rawInput.update();
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue