rootston: break up input.h

This commit is contained in:
Tony Crisci 2017-11-02 20:13:10 -04:00
parent 80b4a2f64c
commit 53021f8ed4
12 changed files with 93 additions and 52 deletions

View file

@ -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) {

View file

@ -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) {

View file

@ -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) {

View file

@ -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) {

View file

@ -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);

View file

@ -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);

View file

@ -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.