1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2 * Mupen64plus - dummy_input.c *
3 * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
4 * Copyright (C) 2008 Scott Gorman (okaygo) *
5 * Copyright (C) 2009 Richard Goedeken *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program; if not, write to the *
19 * Free Software Foundation, Inc., *
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
21 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
25 #include "api/m64p_types.h"
27 #include "dummy_input.h"
29 m64p_error dummyinput_PluginGetVersion(m64p_plugin_type *PluginType, int *PluginVersion,
30 int *APIVersion, const char **PluginNamePtr, int *Capabilities)
32 if (PluginType != NULL)
33 *PluginType = M64PLUGIN_INPUT;
35 if (PluginVersion != NULL)
36 *PluginVersion = 0x00010000;
38 if (APIVersion != NULL)
39 *APIVersion = INPUT_API_VERSION;
41 if (PluginNamePtr != NULL)
42 *PluginNamePtr = "Mupen64Plus-NoInput";
44 if (Capabilities != NULL)
47 return M64ERR_SUCCESS;
50 void dummyinput_InitiateControllers (CONTROL_INFO ControlInfo)
52 ControlInfo.Controls[0].Present = 1;
55 void dummyinput_GetKeys(int Control, BUTTONS * Keys )
60 void dummyinput_ControllerCommand(int Control, unsigned char *Command)
64 void dummyinput_ReadController(int Control, unsigned char *Command)
68 int dummyinput_RomOpen(void)
73 void dummyinput_RomClosed(void)
77 void dummyinput_SDL_KeyDown(int keymod, int keysym)
81 void dummyinput_SDL_KeyUp(int keymod, int keysym)