X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Fmupen64plus-core%2Fsrc%2Fplugin%2Fdummy_input.c;fp=source%2Fmupen64plus-core%2Fsrc%2Fplugin%2Fdummy_input.c;h=a9d3e5bb54577dce85881ff04a2bf303b6809446;hb=451ab91e3827a6384981b3300e2a7000d2eaba58;hp=0000000000000000000000000000000000000000;hpb=a2ab25365b5b0dddbee476d695d8a31151407581;p=mupen64plus-pandora.git diff --git a/source/mupen64plus-core/src/plugin/dummy_input.c b/source/mupen64plus-core/src/plugin/dummy_input.c new file mode 100644 index 0000000..a9d3e5b --- /dev/null +++ b/source/mupen64plus-core/src/plugin/dummy_input.c @@ -0,0 +1,85 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * Mupen64plus - dummy_input.c * + * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * + * Copyright (C) 2008 Scott Gorman (okaygo) * + * Copyright (C) 2009 Richard Goedeken * + * * + * This program 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 Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program 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 this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +#include + +#include "api/m64p_types.h" +#include "plugin.h" +#include "dummy_input.h" + +m64p_error dummyinput_PluginGetVersion(m64p_plugin_type *PluginType, int *PluginVersion, + int *APIVersion, const char **PluginNamePtr, int *Capabilities) +{ + if (PluginType != NULL) + *PluginType = M64PLUGIN_INPUT; + + if (PluginVersion != NULL) + *PluginVersion = 0x00010000; + + if (APIVersion != NULL) + *APIVersion = INPUT_API_VERSION; + + if (PluginNamePtr != NULL) + *PluginNamePtr = "Mupen64Plus-NoInput"; + + if (Capabilities != NULL) + *Capabilities = 0; + + return M64ERR_SUCCESS; +} + +void dummyinput_InitiateControllers (CONTROL_INFO ControlInfo) +{ + ControlInfo.Controls[0].Present = 1; +} + +void dummyinput_GetKeys(int Control, BUTTONS * Keys ) +{ + Keys->Value = 0x0000; +} + +void dummyinput_ControllerCommand(int Control, unsigned char *Command) +{ +} + +void dummyinput_ReadController(int Control, unsigned char *Command) +{ +} + +int dummyinput_RomOpen(void) +{ + return 1; +} + +void dummyinput_RomClosed(void) +{ +} + +void dummyinput_SDL_KeyDown(int keymod, int keysym) +{ +} + +void dummyinput_SDL_KeyUp(int keymod, int keysym) +{ +} + +