mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-15 14:33:01 -04:00
types/keyboard: drop linux-specific header
This commit is contained in:
parent
91ca5839bd
commit
3cffb0520e
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <linux/input-event-codes.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|
@ -323,6 +322,10 @@ bool wlr_keyboard_keymaps_match(struct xkb_keymap *km1,
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define BTN_LEFT 0x110
|
||||||
|
#define BTN_RIGHT 0x111
|
||||||
|
#define BTN_MIDDLE 0x112
|
||||||
|
|
||||||
uint32_t wlr_keyboard_keysym_to_pointer_button(xkb_keysym_t keysym) {
|
uint32_t wlr_keyboard_keysym_to_pointer_button(xkb_keysym_t keysym) {
|
||||||
switch (keysym) {
|
switch (keysym) {
|
||||||
case XKB_KEY_Pointer_Button1:
|
case XKB_KEY_Pointer_Button1:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue