mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 21:12:23 +00:00
Move mpvcore/input/ to input/
This commit is contained in:
parent
053c743724
commit
8d5214de0a
@ -30,7 +30,7 @@
|
||||
#include "audio/format.h"
|
||||
#include "mpvcore/mp_msg.h"
|
||||
#include "ao.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/input.h"
|
||||
|
||||
#define PULSE_CLIENT_NAME "mpv"
|
||||
|
||||
|
@ -645,7 +645,7 @@ const m_option_t mp_input_opts[] = {
|
||||
static int default_cmd_func(int fd, char *buf, int l);
|
||||
|
||||
static const char builtin_input_conf[] =
|
||||
#include "mpvcore/input/input_conf.h"
|
||||
#include "input/input_conf.h"
|
||||
;
|
||||
|
||||
static bool test_rect(struct mp_rect *rc, int x, int y)
|
17
old-makefile
17
old-makefile
@ -104,10 +104,10 @@ SOURCES-$(GL_WAYLAND) += video/out/wayland_common.c \
|
||||
video/out/gl_wayland.c
|
||||
|
||||
SOURCES-$(JACK) += audio/out/ao_jack.c
|
||||
SOURCES-$(JOYSTICK) += mpvcore/input/joystick.c
|
||||
SOURCES-$(JOYSTICK) += input/joystick.c
|
||||
SOURCES-$(LIBQUVI) += mpvcore/resolve_quvi.c
|
||||
SOURCES-$(LIBQUVI9) += mpvcore/resolve_quvi9.c
|
||||
SOURCES-$(LIRC) += mpvcore/input/lirc.c
|
||||
SOURCES-$(LIRC) += input/lirc.c
|
||||
SOURCES-$(OPENAL) += audio/out/ao_openal.c
|
||||
SOURCES-$(OSS) += audio/out/ao_oss.c
|
||||
SOURCES-$(PULSE) += audio/out/ao_pulse.c
|
||||
@ -192,6 +192,7 @@ SOURCES = audio/audio.c \
|
||||
demux/demux_subreader.c \
|
||||
demux/ebml.c \
|
||||
demux/mf.c \
|
||||
input/input.c \
|
||||
mpvcore/asxparser.c \
|
||||
mpvcore/av_common.c \
|
||||
mpvcore/av_log.c \
|
||||
@ -213,7 +214,6 @@ SOURCES = audio/audio.c \
|
||||
mpvcore/playlist.c \
|
||||
mpvcore/playlist_parser.c \
|
||||
mpvcore/version.c \
|
||||
mpvcore/input/input.c \
|
||||
osdep/io.c \
|
||||
osdep/numcores.c \
|
||||
osdep/timer.c \
|
||||
@ -335,11 +335,12 @@ DIRS = . \
|
||||
audio/filter \
|
||||
audio/out \
|
||||
mpvcore \
|
||||
mpvcore/input \
|
||||
mpvcore/timeline \
|
||||
input \
|
||||
timeline \
|
||||
demux \
|
||||
osdep \
|
||||
osdep/ar \
|
||||
player \
|
||||
stream \
|
||||
sub \
|
||||
video \
|
||||
@ -391,8 +392,8 @@ mpv$(EXESUF): $(OBJECTS)
|
||||
mpv$(EXESUF):
|
||||
$(CC) -o $@ $^ $(EXTRALIBS)
|
||||
|
||||
mpvcore/input/input.c: mpvcore/input/input_conf.h
|
||||
mpvcore/input/input_conf.h: TOOLS/file2string.pl etc/input.conf
|
||||
input/input.c: input/input_conf.h
|
||||
input/input_conf.h: TOOLS/file2string.pl etc/input.conf
|
||||
./$^ >$@
|
||||
|
||||
MKVLIB_DEPS = TOOLS/lib/Parse/Matroska.pm \
|
||||
@ -525,7 +526,7 @@ clean:
|
||||
-$(RM) $(call ADDSUFFIXES,.pdf .tex .log .aux .out .toc,DOCS/man/*/mpv)
|
||||
-$(RM) DOCS/man/*/mpv.1
|
||||
-$(RM) version.h
|
||||
-$(RM) mpvcore/input/input_conf.h
|
||||
-$(RM) input/input_conf.h
|
||||
-$(RM) video/out/vdpau_template.c
|
||||
-$(RM) demux/ebml_types.h demux/ebml_defs.c
|
||||
-$(RM) video/out/gl_video_shaders.h
|
||||
|
@ -28,8 +28,8 @@
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <windows.h>
|
||||
#include "mpvcore/input/keycodes.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/keycodes.h"
|
||||
#include "input/input.h"
|
||||
#include "getch2.h"
|
||||
|
||||
int mp_input_slave_cmd_func(int fd, char *dest, int size)
|
||||
|
@ -43,8 +43,8 @@
|
||||
|
||||
#include "mpvcore/mp_common.h"
|
||||
#include "mpvcore/bstr.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "mpvcore/input/keycodes.h"
|
||||
#include "input/input.h"
|
||||
#include "input/keycodes.h"
|
||||
#include "getch2.h"
|
||||
|
||||
#if HAVE_TERMIOS
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#ifndef MACOSX_EVENTS_H
|
||||
#define MACOSX_EVENTS_H
|
||||
#include "mpvcore/input/keycodes.h"
|
||||
#include "input/keycodes.h"
|
||||
|
||||
void cocoa_put_key(int keycode);
|
||||
void cocoa_put_key_with_modifiers(int keycode, int modifiers);
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include "command.h"
|
||||
#include "osdep/timer.h"
|
||||
#include "mpvcore/mp_common.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/input.h"
|
||||
#include "stream/stream.h"
|
||||
#include "demux/demux.h"
|
||||
#include "demux/stheader.h"
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "mpvcore/mp_msg.h"
|
||||
#include "mpvcore/mp_common.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/input.h"
|
||||
|
||||
#include "stream/stream_dvdnav.h"
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
||||
#include "mpvcore/mp_common.h"
|
||||
#include "mpvcore/resolve.h"
|
||||
#include "mpvcore/encode.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/input.h"
|
||||
|
||||
#include "audio/mixer.h"
|
||||
#include "audio/audio.h"
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "mpvcore/m_property.h"
|
||||
#include "mpvcore/mp_msg.h"
|
||||
#include "mpvcore/m_option.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/input.h"
|
||||
#include "mpvcore/path.h"
|
||||
#include "mpvcore/bstr.h"
|
||||
#include "osdep/timer.h"
|
||||
|
@ -48,7 +48,7 @@
|
||||
#include "mpvcore/playlist.h"
|
||||
#include "mpvcore/playlist_parser.h"
|
||||
#include "mpvcore/options.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/input.h"
|
||||
|
||||
#include "audio/decode/dec_audio.h"
|
||||
#include "audio/out/ao.h"
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include "mpvcore/resolve.h"
|
||||
#include "mpvcore/encode.h"
|
||||
#include "mpvcore/playlist.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/input.h"
|
||||
|
||||
#include "audio/out/ao.h"
|
||||
#include "demux/demux.h"
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include "mpvcore/encode.h"
|
||||
#include "mpvcore/m_property.h"
|
||||
#include "mpvcore/playlist.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/input.h"
|
||||
|
||||
#include "osdep/timer.h"
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
#include "mpvcore/options.h"
|
||||
#include "mpvcore/mp_msg.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/input.h"
|
||||
#include "mpvcore/m_option.h"
|
||||
#include "osdep/timer.h"
|
||||
#include "stream.h"
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include "mpvcore/bstr.h"
|
||||
#include "vo.h"
|
||||
#include "aspect.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/input.h"
|
||||
#include "mpvcore/m_config.h"
|
||||
#include "mpvcore/mp_msg.h"
|
||||
#include "mpvcore/mpv_global.h"
|
||||
|
@ -40,10 +40,10 @@
|
||||
#include "video/vfcap.h"
|
||||
#include "video/memcpy_pic.h"
|
||||
|
||||
#include "mpvcore/input/keycodes.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/keycodes.h"
|
||||
#include "input/input.h"
|
||||
#include "mpvcore/mp_msg.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/input.h"
|
||||
|
||||
/* caca stuff */
|
||||
static caca_canvas_t *canvas;
|
||||
|
@ -30,9 +30,9 @@
|
||||
|
||||
#include <SDL.h>
|
||||
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "mpvcore/input/keycodes.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/input.h"
|
||||
#include "input/keycodes.h"
|
||||
#include "input/input.h"
|
||||
#include "mpvcore/mp_msg.h"
|
||||
#include "mpvcore/options.h"
|
||||
|
||||
|
@ -23,14 +23,14 @@
|
||||
#include <windowsx.h>
|
||||
|
||||
#include "mpvcore/options.h"
|
||||
#include "mpvcore/input/keycodes.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/keycodes.h"
|
||||
#include "input/input.h"
|
||||
#include "mpvcore/mp_msg.h"
|
||||
#include "mpvcore/mp_common.h"
|
||||
#include "vo.h"
|
||||
#include "aspect.h"
|
||||
#include "w32_common.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/input.h"
|
||||
#include "osdep/io.h"
|
||||
#include "talloc.h"
|
||||
|
||||
|
@ -43,8 +43,8 @@
|
||||
#include "aspect.h"
|
||||
#include "osdep/timer.h"
|
||||
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "mpvcore/input/keycodes.h"
|
||||
#include "input/input.h"
|
||||
#include "input/keycodes.h"
|
||||
|
||||
#define MOD_SHIFT_MASK 0x01
|
||||
#define MOD_ALT_MASK 0x02
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "mpvcore/bstr.h"
|
||||
#include "mpvcore/options.h"
|
||||
#include "mpvcore/mp_msg.h"
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "input/input.h"
|
||||
#include "libavutil/common.h"
|
||||
#include "x11_common.h"
|
||||
#include "talloc.h"
|
||||
@ -70,8 +70,8 @@
|
||||
#include <zlib.h>
|
||||
#endif
|
||||
|
||||
#include "mpvcore/input/input.h"
|
||||
#include "mpvcore/input/keycodes.h"
|
||||
#include "input/input.h"
|
||||
#include "input/keycodes.h"
|
||||
|
||||
#define vo_wm_LAYER 1
|
||||
#define vo_wm_FULLSCREEN 2
|
||||
|
@ -60,7 +60,7 @@ def build(ctx):
|
||||
|
||||
ctx.file2string(
|
||||
source = "etc/input.conf",
|
||||
target = "mpvcore/input/input_conf.h")
|
||||
target = "input/input_conf.h")
|
||||
|
||||
ctx.file2string(
|
||||
source = "video/out/gl_video_shaders.glsl",
|
||||
@ -163,9 +163,6 @@ def build(ctx):
|
||||
( "audio/out/ao_wasapi.c", "wasapi" ),
|
||||
|
||||
## Core
|
||||
( "mpvcore/input/input.c" ),
|
||||
( "mpvcore/input/joystick.c", "joystick" ),
|
||||
( "mpvcore/input/lirc.c", "lirc" ),
|
||||
( "mpvcore/asxparser.c" ),
|
||||
( "mpvcore/av_common.c" ),
|
||||
( "mpvcore/av_log.c" ),
|
||||
@ -206,6 +203,11 @@ def build(ctx):
|
||||
( "demux/ebml.c" ),
|
||||
( "demux/mf.c" ),
|
||||
|
||||
## Input
|
||||
( "input/input.c" ),
|
||||
( "input/joystick.c", "joystick" ),
|
||||
( "input/lirc.c", "lirc" ),
|
||||
|
||||
## Player
|
||||
( "player/audio.c" ),
|
||||
( "player/command.c" ),
|
||||
|
Loading…
Reference in New Issue
Block a user