mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 22:51:58 -07:00
keyboard fix
This commit is contained in:
@@ -52,9 +52,9 @@ Vector2D CInputManager::getMouseCoordsInternal() {
|
||||
}
|
||||
|
||||
void CInputManager::newKeyboard(wlr_input_device* keyboard) {
|
||||
m_dKeyboards.push_back(SKeyboard());
|
||||
m_lKeyboards.push_back(SKeyboard());
|
||||
|
||||
const auto PNEWKEYBOARD = &m_dKeyboards.back();
|
||||
const auto PNEWKEYBOARD = &m_lKeyboards.back();
|
||||
|
||||
PNEWKEYBOARD->keyboard = keyboard;
|
||||
|
||||
@@ -89,6 +89,18 @@ void CInputManager::newMouse(wlr_input_device* mouse) {
|
||||
wlr_cursor_attach_input_device(g_pCompositor->m_sWLRCursor, mouse);
|
||||
}
|
||||
|
||||
void CInputManager::destroyKeyboard(SKeyboard* pKeyboard) {
|
||||
wl_list_remove(&pKeyboard->listen_keyboardMod.link);
|
||||
wl_list_remove(&pKeyboard->listen_keyboardKey.link);
|
||||
wl_list_remove(&pKeyboard->listen_keyboardDestroy.link);
|
||||
|
||||
m_lKeyboards.remove(*pKeyboard);
|
||||
}
|
||||
|
||||
void CInputManager::destroyMouse(wlr_input_device* mouse) {
|
||||
//
|
||||
}
|
||||
|
||||
void CInputManager::onKeyboardKey(wlr_event_keyboard_key* e, SKeyboard* pKeyboard) {
|
||||
const auto KEYCODE = e->keycode + 8; // Because to xkbcommon it's +8 from libinput
|
||||
|
||||
|
Reference in New Issue
Block a user