mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	input: rename drawing_tablet to tablet
This commit is contained in:
		
							parent
							
								
									5a93aa3a78
								
							
						
					
					
						commit
						20bba35570
					
				
					 4 changed files with 9 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
/* SPDX-License-Identifier: GPL-2.0-only */
 | 
			
		||||
#ifndef LABWC_DRAWING_TABLET_H
 | 
			
		||||
#define LABWC_DRAWING_TABLET_H
 | 
			
		||||
#ifndef LABWC_TABLET_H
 | 
			
		||||
#define LABWC_TABLET_H
 | 
			
		||||
 | 
			
		||||
#include <wayland-server-core.h>
 | 
			
		||||
struct seat;
 | 
			
		||||
| 
						 | 
				
			
			@ -20,6 +20,6 @@ struct drawing_tablet {
 | 
			
		|||
	} handlers;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
void drawing_tablet_setup_handlers(struct seat *seat, struct wlr_input_device *wlr_input_device);
 | 
			
		||||
void tablet_setup_handlers(struct seat *seat, struct wlr_input_device *wlr_input_device);
 | 
			
		||||
 | 
			
		||||
#endif /* LABWC_DRAWING_TABLET_H */
 | 
			
		||||
#endif /* LABWC_TABLET_H */
 | 
			
		||||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
labwc_sources += files(
 | 
			
		||||
  'cursor.c',
 | 
			
		||||
  'drawing_tablet.c',
 | 
			
		||||
  'tablet.c',
 | 
			
		||||
  'gestures.c',
 | 
			
		||||
  'input.c',
 | 
			
		||||
  'keyboard.c',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,7 +9,7 @@
 | 
			
		|||
#include "common/mem.h"
 | 
			
		||||
#include "config/rcxml.h"
 | 
			
		||||
#include "input/cursor.h"
 | 
			
		||||
#include "input/drawing_tablet.h"
 | 
			
		||||
#include "input/tablet.h"
 | 
			
		||||
 | 
			
		||||
static void
 | 
			
		||||
handle_axis(struct wl_listener *listener, void *data)
 | 
			
		||||
| 
						 | 
				
			
			@ -109,7 +109,7 @@ setup_pen(struct seat *seat, struct wlr_input_device *wlr_device)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
drawing_tablet_setup_handlers(struct seat *seat, struct wlr_input_device *device)
 | 
			
		||||
tablet_setup_handlers(struct seat *seat, struct wlr_input_device *device)
 | 
			
		||||
{
 | 
			
		||||
	switch (device->type) {
 | 
			
		||||
	case WLR_INPUT_DEVICE_TABLET_PAD:
 | 
			
		||||
| 
						 | 
				
			
			@ -9,7 +9,7 @@
 | 
			
		|||
#include <wlr/types/wlr_touch.h>
 | 
			
		||||
#include <wlr/util/log.h>
 | 
			
		||||
#include "common/mem.h"
 | 
			
		||||
#include "input/drawing_tablet.h"
 | 
			
		||||
#include "input/tablet.h"
 | 
			
		||||
#include "input/input.h"
 | 
			
		||||
#include "input/keyboard.h"
 | 
			
		||||
#include "input/key-state.h"
 | 
			
		||||
| 
						 | 
				
			
			@ -270,7 +270,7 @@ new_tablet(struct seat *seat, struct wlr_input_device *dev)
 | 
			
		|||
{
 | 
			
		||||
	struct input *input = znew(*input);
 | 
			
		||||
	input->wlr_input_device = dev;
 | 
			
		||||
	drawing_tablet_setup_handlers(seat, dev);
 | 
			
		||||
	tablet_setup_handlers(seat, dev);
 | 
			
		||||
 | 
			
		||||
	return input;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue