Wayland cOMPositor written in C++ using Louvre.
at main 1.0 kB view raw
1/* ======================================================================== 2 * 3 * Filename: WKeyboard.hpp 4 * Description: W Compositor WKeyboard class declaration 5 * GitHub Repo: https://github.com/diego-est/womp 6 * Author: Diego A. Estrada Rivera 7 * License: GPL-3.0 8 * 9 * ======================================================================== */ 10#include "WKeyboard.hpp" 11#include "prelude.hpp" 12#include "global.hpp" 13#include <LScene.h> 14#include <LClient.h> 15#include <LCompositor.h> 16#include <LCursor.h> 17#include <LLauncher.h> 18#include <LOutput.h> 19#include <LSurface.h> 20#include <linux/input-event-codes.h> 21#include <unistd.h> 22 23WKeyboard::WKeyboard(Handle<Params> params) noexcept : LKeyboard(params) 24{ 25} 26 27void WKeyboard::keyEvent(U32 keyCode, KeyState keyState) noexcept 28{ 29 G::scene()->handleKeyEvent(keyCode, keyState); 30} 31 32void WKeyboard::keyModifiersEvent(U32 depressed, U32 latched, U32 locked, 33 U32 group) noexcept 34{ 35 G::scene()->handleKeyModifiersEvent(depressed, latched, locked, group); 36}