2015-04-01 22:14:13 +01:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2017-01-22 13:40:32 +01:00
|
|
|
* Copyright (C) 2014-2017 - Ali Bouhlel
|
|
|
|
* Copyright (C) 2011-2017 - Daniel De Matteis
|
2015-04-01 22:14:13 +01: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/>.
|
|
|
|
*/
|
|
|
|
|
2015-04-08 21:35:10 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdlib.h>
|
2016-05-10 19:03:53 +02:00
|
|
|
|
2015-06-19 03:45:23 +02:00
|
|
|
#include <boolean.h>
|
2016-05-10 19:03:53 +02:00
|
|
|
#include <libretro.h>
|
2017-01-31 03:27:26 +01:00
|
|
|
#include <retro_miscellaneous.h>
|
2015-04-02 02:19:21 +01:00
|
|
|
|
2016-09-11 13:21:56 +02:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "../../config.h"
|
|
|
|
#endif
|
|
|
|
|
2017-01-10 17:59:48 +01:00
|
|
|
#include "../input_driver.h"
|
2015-04-02 02:19:21 +01:00
|
|
|
|
2020-09-11 11:50:00 +02:00
|
|
|
static void ctr_input_free_input(void *data) { }
|
2015-04-01 22:14:13 +01:00
|
|
|
|
2020-09-11 11:50:00 +02:00
|
|
|
static void* ctr_input_init(const char *a) { return (void*)-1; }
|
2015-04-01 22:14:13 +01:00
|
|
|
|
2015-04-08 21:35:10 +01:00
|
|
|
static uint64_t ctr_input_get_capabilities(void *data)
|
|
|
|
{
|
|
|
|
return (1 << RETRO_DEVICE_JOYPAD) | (1 << RETRO_DEVICE_ANALOG);
|
2015-04-01 22:14:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
input_driver_t input_ctr = {
|
2017-01-10 17:59:48 +01:00
|
|
|
ctr_input_init,
|
2020-08-30 05:29:32 +02:00
|
|
|
NULL, /* poll */
|
2020-09-02 17:37:01 +02:00
|
|
|
NULL, /* input_state */
|
2015-04-02 02:19:21 +01:00
|
|
|
ctr_input_free_input,
|
2015-04-08 21:35:10 +01:00
|
|
|
NULL,
|
2015-04-01 22:14:13 +01:00
|
|
|
NULL,
|
2015-04-02 02:19:21 +01:00
|
|
|
ctr_input_get_capabilities,
|
2015-04-01 22:14:13 +01:00
|
|
|
"ctr",
|
2020-08-30 05:29:32 +02:00
|
|
|
NULL, /* grab_mouse */
|
2020-09-02 00:38:11 +02:00
|
|
|
NULL
|
2015-04-01 22:14:13 +01:00
|
|
|
};
|