mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-27 06:59:46 -05:00
rootston: break up input.h
This commit is contained in:
parent
80b4a2f64c
commit
53021f8ed4
12 changed files with 93 additions and 52 deletions
|
|
@ -13,6 +13,7 @@
|
|||
#include <wlr/types/wlr_box.h>
|
||||
#include "rootston/config.h"
|
||||
#include "rootston/input.h"
|
||||
#include "rootston/keyboard.h"
|
||||
#include "rootston/ini.h"
|
||||
|
||||
static void usage(const char *name, int ret) {
|
||||
|
|
|
|||
|
|
@ -18,6 +18,10 @@
|
|||
#include "rootston/input.h"
|
||||
#include "rootston/desktop.h"
|
||||
#include "rootston/view.h"
|
||||
#include "rootston/keyboard.h"
|
||||
#include "rootston/pointer.h"
|
||||
#include "rootston/tablet_tool.h"
|
||||
#include "rootston/touch.h"
|
||||
|
||||
const struct roots_input_event *get_input_event(struct roots_input *input,
|
||||
uint32_t serial) {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,10 @@
|
|||
#include "rootston/server.h"
|
||||
#include "rootston/config.h"
|
||||
#include "rootston/input.h"
|
||||
#include "rootston/tablet_tool.h"
|
||||
#include "rootston/keyboard.h"
|
||||
#include "rootston/pointer.h"
|
||||
#include "rootston/touch.h"
|
||||
|
||||
static const char *device_type(enum wlr_input_device_type type) {
|
||||
switch (type) {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
#include <wlr/util/log.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
#include "rootston/input.h"
|
||||
#include "rootston/keyboard.h"
|
||||
|
||||
static ssize_t keyboard_pressed_keysym_index(struct roots_keyboard *keyboard,
|
||||
xkb_keysym_t keysym) {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#include <wlr/types/wlr_input_device.h>
|
||||
#include <wlr/types/wlr_pointer.h>
|
||||
#include "rootston/input.h"
|
||||
#include "rootston/pointer.h"
|
||||
|
||||
void pointer_add(struct wlr_input_device *device, struct roots_input *input) {
|
||||
struct roots_pointer *pointer = calloc(sizeof(struct roots_pointer), 1);
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <wlr/types/wlr_pointer.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "rootston/input.h"
|
||||
#include "rootston/tablet_tool.h"
|
||||
|
||||
void tablet_tool_add(struct wlr_input_device *device, struct roots_input *input) {
|
||||
struct roots_tablet_tool *tool = calloc(sizeof(struct roots_tablet_tool), 1);
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#include <wlr/types/wlr_input_device.h>
|
||||
#include <wlr/types/wlr_pointer.h>
|
||||
#include "rootston/input.h"
|
||||
#include "rootston/touch.h"
|
||||
|
||||
// TODO: we'll likely want touch events to both control the cursor *and* be
|
||||
// submitted directly to the seat.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue