mirror of
https://github.com/WayfireWM/wf-osk.git
synced 2025-04-17 18:06:46 +02:00
22 lines
408 B
C++
22 lines
408 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <virtual-keyboard-unstable-v1-client-protocol.h>
|
|
|
|
namespace wf
|
|
{
|
|
class VirtualKeyboardDevice
|
|
{
|
|
int shift_pressed_counter = 0;
|
|
|
|
void send_keymap();
|
|
zwp_virtual_keyboard_v1 *vk;
|
|
|
|
public:
|
|
VirtualKeyboardDevice();
|
|
|
|
void set_shift(bool shift_on);
|
|
void send_key(uint32_t key, uint32_t state) const;
|
|
};
|
|
}
|