mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-27 00:24:01 +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);
|
joysticks[i]->update(dt);
|
||||||
|
|
||||||
// all input done; update button states
|
// all input done; update button states
|
||||||
//updateActionButtons();
|
|
||||||
rawInput.update();
|
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.
|
// so we don't lose button presses that are shorter than 1 frame.
|
||||||
unsigned char ch = !!inp->u.pressed;
|
unsigned char ch = !!inp->u.pressed;
|
||||||
keyChanged[idx] |= (keyState[idx] != ch) << 1; // bit 1 becomes bit 0 in next frame
|
keyChanged[idx] |= (keyState[idx] != ch) << 1; // bit 1 becomes bit 0 in next frame
|
||||||
keyState[idx] |= ch;
|
keyState[idx] = ch;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputMapperRaw::update()
|
void InputMapperRaw::update()
|
||||||
|
|
Loading…
Add table
Reference in a new issue