diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-19 17:48:18 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-19 17:48:18 +0100 |
| commit | f9a4e9aecd2f38d0f82f24ac2dd4a1f9d4d84045 (patch) | |
| tree | bfc784c918da55993f7635172aa7ce83348fa5f8 /src/managers/InputManager.cpp | |
| parent | dba7bbdcf35a123e6106b420d9cc6064528080e0 (diff) | |
basic keybinds
Diffstat (limited to 'src/managers/InputManager.cpp')
| -rw-r--r-- | src/managers/InputManager.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/managers/InputManager.cpp b/src/managers/InputManager.cpp index 492251fd..0f5f1a98 100644 --- a/src/managers/InputManager.cpp +++ b/src/managers/InputManager.cpp @@ -136,14 +136,16 @@ void CInputManager::onKeyboardKey(wlr_event_keyboard_key* e, SKeyboard* pKeyboar wlr_idle_notify_activity(g_pCompositor->m_sWLRIdle, g_pCompositor->m_sWLRSeat); if (e->state == WL_KEYBOARD_KEY_STATE_PRESSED) { - // TODO: keybinds - + for (int i = 0; i < syms; ++i) + g_pKeybindManager->handleKeybinds(MODS, keysyms[i]); } else if (e->state == WL_KEYBOARD_KEY_STATE_RELEASED) { - + // hee hee } wlr_seat_set_keyboard(g_pCompositor->m_sWLRSeat, pKeyboard->keyboard); wlr_seat_keyboard_notify_key(g_pCompositor->m_sWLRSeat, e->time_msec, e->keycode, e->state); + + g_pCompositor->focusWindow(g_pCompositor->vectorToWindowIdeal(g_pInputManager->getMouseCoordsInternal())); } void CInputManager::onKeyboardMod(void* data, SKeyboard* pKeyboard) { |
