2012-06-19 22:44:40 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2013-01-01 00:37:37 +00:00
|
|
|
* Copyright (C) 2010-2013 - Hans-Kristian Arntzen
|
2012-06-19 22:44:40 +00: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 "../general.h"
|
|
|
|
#include "../driver.h"
|
|
|
|
|
2012-11-26 23:50:29 +00:00
|
|
|
static void *nullinput_input_init(void)
|
2012-06-19 22:44:40 +00:00
|
|
|
{
|
|
|
|
return (void*)-1;
|
|
|
|
}
|
|
|
|
|
2012-11-26 23:50:29 +00:00
|
|
|
static void nullinput_input_poll(void *data)
|
2012-06-19 22:44:40 +00:00
|
|
|
{
|
|
|
|
(void)data;
|
|
|
|
}
|
|
|
|
|
2012-11-26 23:50:29 +00:00
|
|
|
static int16_t nullinput_input_state(void *data, const struct retro_keybind **retro_keybinds, unsigned port, unsigned device, unsigned index, unsigned id)
|
2012-06-19 22:44:40 +00:00
|
|
|
{
|
|
|
|
(void)data;
|
2012-07-07 15:19:32 +00:00
|
|
|
(void)retro_keybinds;
|
2012-06-19 22:44:40 +00:00
|
|
|
(void)port;
|
|
|
|
(void)device;
|
|
|
|
(void)index;
|
|
|
|
(void)id;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-11-26 23:50:29 +00:00
|
|
|
static bool nullinput_input_key_pressed(void *data, int key)
|
2012-06-19 22:44:40 +00:00
|
|
|
{
|
|
|
|
(void)data;
|
|
|
|
(void)key;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2012-11-26 23:50:29 +00:00
|
|
|
static void nullinput_input_free_input(void *data)
|
2012-06-19 22:44:40 +00:00
|
|
|
{
|
|
|
|
(void)data;
|
|
|
|
}
|
|
|
|
|
2013-03-14 01:24:57 +00:00
|
|
|
static void nullinput_set_keybinds(void *data, unsigned device,
|
|
|
|
unsigned port, unsigned id, unsigned keybind_action)
|
2012-07-27 23:37:15 +00:00
|
|
|
{
|
2013-03-14 01:24:57 +00:00
|
|
|
(void)data;
|
2012-07-27 23:37:15 +00:00
|
|
|
(void)device;
|
2012-07-28 00:27:41 +00:00
|
|
|
(void)port;
|
2013-03-13 22:17:33 +00:00
|
|
|
(void)id;
|
2013-03-14 01:24:57 +00:00
|
|
|
(void)keybind_action;
|
2012-07-27 23:37:15 +00:00
|
|
|
}
|
|
|
|
|
2012-06-19 22:44:40 +00:00
|
|
|
const input_driver_t input_null = {
|
2012-11-26 23:50:29 +00:00
|
|
|
nullinput_input_init,
|
|
|
|
nullinput_input_poll,
|
|
|
|
nullinput_input_state,
|
|
|
|
nullinput_input_key_pressed,
|
|
|
|
nullinput_input_free_input,
|
2013-03-14 01:24:57 +00:00
|
|
|
nullinput_set_keybinds,
|
2012-06-19 22:44:40 +00:00
|
|
|
"null",
|
|
|
|
};
|
|
|
|
|