+/*
+ * (C) GraÅžvydas "notaz" Ignotas, 2009
+ *
+ * This work is licensed under the terms of any of these licenses
+ * (at your option):
+ * - GNU GPL, version 2 or later.
+ * - GNU LGPL, version 2.1 or later.
+ * - MAME license.
+ * See the COPYING file in the top-level directory.
+ */
+
#define RC_INVOKED // we only need defines
#include <winuser.h>
#undef RC_INVOKED
#include <string.h>
-#include "../common/input.h"
-#include "../common/emu.h" // array_size
+#include "../input.h"
+#include "../emu.h" // array_size
#include "in_vk.h"
#define IN_VK_PREFIX "vk:"
static void in_vk_probe(void)
{
memset(in_vk_keys_down, 0, sizeof(in_vk_keys_down));
- in_register(IN_VK_PREFIX "vk", IN_DRVID_VK, -1, (void *)1, IN_VK_NKEYS, 0);
+ in_register(IN_VK_PREFIX "vk", IN_DRVID_VK, -1, (void *)1, IN_VK_NKEYS, NULL, 0);
}
static int in_vk_get_bind_count(void)
#define KEY_PBTN_MAP_SIZE (sizeof(key_pbtn_map) / sizeof(key_pbtn_map[0]))
-static int in_vk_menu_translate(int keycode)
+static int in_vk_menu_translate(void *drv_data, int keycode)
{
int i;
if (keycode < 0)