Changed key and mouse button callback signatures

This commit is contained in:
Dynamitos committed 2026-04-11 10:15:35 +02:00
1 parent b6a449d8e3
commit 056589a6f9
14 files changed
+37 -28

No files matched your search

+2 -2
View File
@@ -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;
}