2012-07-08 21:42:26 +02:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2014-01-01 01:50:59 +01:00
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
2017-01-22 13:40:32 +01:00
|
|
|
* Copyright (C) 2011-2017 - Daniel De Matteis
|
2017-12-11 23:55:31 -08:00
|
|
|
*
|
2012-07-08 21:42:26 +02:00
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2016-09-11 13:21:56 +02:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "../../config.h"
|
|
|
|
#endif
|
|
|
|
|
2012-07-08 21:42:26 +02:00
|
|
|
#ifdef _XBOX
|
|
|
|
#include <xtl.h>
|
|
|
|
#endif
|
|
|
|
|
2016-05-10 19:03:53 +02:00
|
|
|
#include <boolean.h>
|
|
|
|
#include <libretro.h>
|
|
|
|
|
2019-07-19 12:55:38 +02:00
|
|
|
#include "../../config.def.h"
|
2013-01-22 01:05:48 +01:00
|
|
|
|
2019-07-19 12:55:38 +02:00
|
|
|
#include "../input_driver.h"
|
2014-04-17 20:47:11 +02:00
|
|
|
|
2020-09-11 11:50:00 +02:00
|
|
|
static void xdk_input_free_input(void *data) { }
|
2020-09-11 11:45:01 +02:00
|
|
|
static void *xdk_input_init(const char *a) { return (void*)-1; }
|
2012-07-27 15:46:15 +02:00
|
|
|
|
2013-11-02 21:16:57 +01:00
|
|
|
static uint64_t xdk_input_get_capabilities(void *data)
|
|
|
|
{
|
2014-10-05 17:39:54 +02:00
|
|
|
return (1 << RETRO_DEVICE_JOYPAD) | (1 << RETRO_DEVICE_ANALOG);
|
2013-11-02 21:16:57 +01:00
|
|
|
}
|
|
|
|
|
2014-09-11 07:06:20 +02:00
|
|
|
input_driver_t input_xinput = {
|
2012-12-02 06:01:39 +01:00
|
|
|
xdk_input_init,
|
2020-08-30 05:29:32 +02:00
|
|
|
NULL, /* poll */
|
2020-09-02 17:37:01 +02:00
|
|
|
NULL, /* input_state */
|
2012-12-02 06:01:39 +01:00
|
|
|
xdk_input_free_input,
|
2014-06-09 18:17:37 +02:00
|
|
|
NULL,
|
2013-11-03 00:27:58 +01:00
|
|
|
NULL,
|
2013-11-02 21:16:57 +01:00
|
|
|
xdk_input_get_capabilities,
|
2013-11-03 21:32:16 +01:00
|
|
|
"xinput",
|
2020-08-30 05:29:32 +02:00
|
|
|
NULL, /* grab_mouse */
|
2020-09-02 00:38:11 +02:00
|
|
|
NULL
|
2012-07-08 21:42:26 +02:00
|
|
|
};
|