2015-01-07 17:46:50 +01:00
|
|
|
/* RetroArch JoyConfig.
|
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
|
|
|
* Copyright (C) 2011-2015 - Daniel De Matteis
|
|
|
|
*
|
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2015-06-12 12:31:28 -03:00
|
|
|
#define IS_JOYCONFIG
|
|
|
|
|
2015-06-30 23:00:21 +02:00
|
|
|
#include <retro_environment.h>
|
|
|
|
|
2014-10-27 15:45:18 +01:00
|
|
|
#include "retroarch-joyconfig.c"
|
|
|
|
|
2015-05-08 09:49:49 +02:00
|
|
|
#include "../libretro-common/dynamic/dylib.c"
|
2015-04-08 07:57:16 +02:00
|
|
|
|
2014-10-27 15:45:18 +01:00
|
|
|
#if defined(__linux) && !defined(ANDROID)
|
2015-01-12 06:16:52 +01:00
|
|
|
#include "../input/drivers/linuxraw_input.c"
|
2015-01-12 06:28:39 +01:00
|
|
|
#include "../input/drivers_joypad/linuxraw_joypad.c"
|
2014-10-27 15:45:18 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(HAVE_DINPUT)
|
2015-01-12 06:16:52 +01:00
|
|
|
#include "../input/drivers/dinput.c"
|
2015-04-08 02:12:35 +02:00
|
|
|
#include "../input/drivers_joypad/dinput_joypad.c"
|
2014-10-27 15:45:18 +01:00
|
|
|
#endif
|
|
|
|
|
2015-04-05 20:54:46 +02:00
|
|
|
#if defined(HAVE_XINPUT)
|
2015-04-02 18:45:08 +02:00
|
|
|
#include "../input/drivers_joypad/xinput_joypad.c"
|
2014-10-27 15:45:18 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(HAVE_UDEV)
|
2015-01-12 06:28:39 +01:00
|
|
|
#include "../input/drivers_joypad/udev_joypad.c"
|
2014-10-27 15:45:18 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(HAVE_PARPORT)
|
2015-01-12 06:28:39 +01:00
|
|
|
#include "../input/drivers_joypad/parport_joypad.c"
|
2014-10-27 15:45:18 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(HAVE_SDL) || defined(HAVE_SDL2)
|
2015-01-12 06:28:39 +01:00
|
|
|
#include "../input/drivers_joypad/sdl_joypad.c"
|
2014-10-27 15:45:18 +01:00
|
|
|
#endif
|
|
|
|
|
2015-04-07 05:11:08 +02:00
|
|
|
#include "../libretro-common/queues/fifo_buffer.c"
|
2015-02-19 00:04:03 +01:00
|
|
|
#include "../libretro-common/file/config_file.c"
|
|
|
|
#include "../libretro-common/file/file_path.c"
|
2015-06-14 09:25:00 -03:00
|
|
|
#include "../libretro-common/hash/rhash.c"
|
2015-03-13 05:03:50 +01:00
|
|
|
#include "../file_path_special.c"
|
2015-02-19 00:04:03 +01:00
|
|
|
#include "../libretro-common/string/string_list.c"
|
|
|
|
#include "../libretro-common/compat/compat.c"
|
2014-10-27 15:45:18 +01:00
|
|
|
|
2015-01-12 06:16:52 +01:00
|
|
|
#include "../input/drivers/nullinput.c"
|
2015-04-02 00:20:28 +02:00
|
|
|
#include "../input/drivers_hid/null_hid.c"
|
2015-04-02 15:43:23 +02:00
|
|
|
|
2015-06-30 23:00:21 +02:00
|
|
|
#include "../libretro-common/rthreads/rthreads.c"
|
|
|
|
|
|
|
|
#ifndef __STDC_C89__
|
2015-04-02 15:43:23 +02:00
|
|
|
#ifdef HAVE_LIBUSB
|
|
|
|
#include "../input/drivers_hid/libusb_hid.c"
|
2015-04-02 17:49:32 +02:00
|
|
|
|
2015-04-20 12:27:14 +02:00
|
|
|
#ifndef HAVE_HID
|
|
|
|
#define HAVE_HID
|
|
|
|
#endif
|
2015-04-02 15:43:23 +02:00
|
|
|
#endif
|
2015-06-30 23:00:21 +02:00
|
|
|
#endif
|
2015-04-02 15:43:23 +02:00
|
|
|
|
2015-04-20 12:04:31 +02:00
|
|
|
#if defined(__APPLE__) && defined(HAVE_IOHIDMANAGER)
|
|
|
|
#include "../input/drivers_hid/iohidmanager_hid.c"
|
2015-04-20 12:27:40 +02:00
|
|
|
|
|
|
|
#ifndef HAVE_HID
|
|
|
|
#define HAVE_HID
|
|
|
|
#endif
|
2015-04-20 12:04:31 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_HID
|
|
|
|
#include "../input/connect/joypad_connection.c"
|
|
|
|
#include "../input/connect/connect_ps3.c"
|
|
|
|
#include "../input/connect/connect_ps4.c"
|
|
|
|
#include "../input/connect/connect_wii.c"
|
|
|
|
#endif
|
|
|
|
|
2015-04-01 22:31:43 +02:00
|
|
|
#include "../input/drivers_joypad/hid_joypad.c"
|
2015-04-02 18:45:08 +02:00
|
|
|
#include "../input/drivers_joypad/null_joypad.c"
|
2014-10-27 15:45:18 +01:00
|
|
|
|
2015-04-01 22:31:43 +02:00
|
|
|
#include "../input/input_hid_driver.c"
|
2015-01-12 20:29:01 +01:00
|
|
|
#include "../input/input_joypad_driver.c"
|
2015-01-10 20:10:45 +01:00
|
|
|
#include "../input/input_joypad.c"
|
2014-10-27 15:45:18 +01:00
|
|
|
#include "../input/input_common.c"
|
|
|
|
#include "../input/input_keymaps.c"
|
|
|
|
|
2015-02-19 00:04:03 +01:00
|
|
|
#include "../libretro-common/queues/message_queue.c"
|