+/*
+ * PicoDrive
+ * (C) notaz, 2007-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <stdarg.h>
+#include "../libpicofe/menu.h"
+#include "../libpicofe/input.h"
#include "../common/emu.h"
-#include "../common/menu.h"
-#include "../common/plat.h"
-#include "sndout_oss.h"
+#include "../common/input_pico.h"
#include "version.h"
#include "log_io.h"
memset(g_screen_ptr, 0, g_screen_width * g_screen_height * 2);
xlib_init();
#endif
-
- // snd
- sndout_oss_init();
}
void plat_finish(void)
#else
free(g_screen_ptr);
#endif
- sndout_oss_exit();
}
/* misc */
{
}
-/* lprintf */
-void lprintf(const char *fmt, ...)
-{
- va_list vl;
+#include <linux/input.h>
- va_start(vl, fmt);
- vprintf(fmt, vl);
- va_end(vl);
-}
+struct in_default_bind in_evdev_defbinds[] =
+{
+ /* MXYZ SACB RLDU */
+ { KEY_UP, IN_BINDTYPE_PLAYER12, 0 },
+ { KEY_DOWN, IN_BINDTYPE_PLAYER12, 1 },
+ { KEY_LEFT, IN_BINDTYPE_PLAYER12, 2 },
+ { KEY_RIGHT, IN_BINDTYPE_PLAYER12, 3 },
+ { KEY_S, IN_BINDTYPE_PLAYER12, 4 }, /* B */
+ { KEY_D, IN_BINDTYPE_PLAYER12, 5 }, /* C */
+ { KEY_A, IN_BINDTYPE_PLAYER12, 6 }, /* A */
+ { KEY_ENTER, IN_BINDTYPE_PLAYER12, 7 },
+ { KEY_BACKSLASH, IN_BINDTYPE_EMU, PEVB_MENU },
+ { 0, 0, 0 }
+};