return xname;
}
+int in_get_key_code(int dev_id, const char *key_name)
+{
+ in_dev_t *dev;
+ int i;
+
+ if (dev_id < 0) /* want last used dev? */
+ dev_id = menu_last_used_dev;
+
+ if (dev_id < 0 || dev_id >= IN_MAX_DEVS)
+ return -1;
+
+ dev = &in_devices[dev_id];
+ if (dev->key_names == NULL)
+ return -1;
+
+ for (i = 0; i < dev->key_count; i++)
+ if (dev->key_names[i] && strcasecmp(dev->key_names[i], key_name) == 0)
+ return i;
+
+ return -1;
+}
+
int in_bind_key(int dev_id, int keycode, int mask, int bind_type, int force_unbind)
{
int ret, count;
void in_config_end(void);
int in_get_config(int dev_id, int what, void *val);
int in_set_config(int dev_id, int what, const void *val, int size);
+int in_get_key_code(int dev_id, const char *key_name);
int in_name_to_id(const char *dev_name);
int in_bind_key(int dev_id, int keycode, int mask, int bind_type, int force_unbind);
void in_unbind_all(int dev_id, int act_mask, int bind_type);