1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 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 <stdlib.h>
#include "api/m64p_types.h"
#include "dummy_input.h"
#include "plugin.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)
{
}
|