forked from Dynamitos/Seele
Changed key and mouse button callback signatures
This commit is contained in:
1 parent
b6a449d8e3
commit
056589a6f9
14 files changed
+37
-28
No files matched your search
@@ -25,14 +25,14 @@ void KeyboardInput::update(Component::KeyboardInput& input) {
|
||||
scrollY = 0;
|
||||
}
|
||||
|
||||
void KeyboardInput::keyCallback(KeyCode code, InputAction action, KeyModifier) { keys[code] = action != InputAction::RELEASE; }
|
||||
void KeyboardInput::keyCallback(KeyCode code, InputAction action, KeyModifierFlags) { keys[code] = action != InputAction::RELEASE; }
|
||||
|
||||
void KeyboardInput::mouseCallback(double x, double y) {
|
||||
mouseX = (float)x;
|
||||
mouseY = (float)y;
|
||||
}
|
||||
|
||||
void KeyboardInput::mouseButtonCallback(MouseButton button, InputAction action, KeyModifier) {
|
||||
void KeyboardInput::mouseButtonCallback(MouseButton button, InputAction action, KeyModifierFlags) {
|
||||
if (button == MouseButton::MOUSE_BUTTON_1) {
|
||||
mouse1 = action != InputAction::RELEASE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user