uinput-mapper/c/confs/key.h

61 lines
1.6 KiB
C
Raw Normal View History

2013-02-09 07:31:58 -05:00
#include "config_functions.h"
#ifndef H_GLOBAL_MAP
#define H_GLOBAL_MAP
/* Set up amount of joysticks here */
#define JOYCOUNT 1
2013-02-09 08:02:52 -05:00
/* Set up amount of input devices here */
#define INPUT_DEVICE_COUNT 1
2013-02-09 07:31:58 -05:00
#endif
2013-02-09 08:02:52 -05:00
/* -------------------------------------------------------------------------- */
/* ------------------- FIRST AND A HALF SECTION ----------------------------- */
/* -------------------------------------------------------------------------- */
#ifdef H_CONFIGURE_EVENTS
#ifndef H_CONFIGURE_EVENTS_SEEN
#define H_CONFIGURE_EVENTS_SEEN
ADD_INPUT_PATH("/dev/input/event9", 0)
#endif
#endif
2013-02-09 07:31:58 -05:00
/* -------------------------------------------------------------------------- */
/* ----------------------------- SECOND SECTION ----------------------------- */
/* -------------------------------------------------------------------------- */
#ifdef H_CONFIGURE_JOYSTICKS
#ifndef H_CONFIGURE_JOYSTICKS_SEEN
#define H_CONFIGURE_JOYSTICKS_SEEN
/* Configure first joystick.
*
* Here we just tell the program what keys event we will expose and what
* keys we want to use.
*
* If a key is not enabled here, it will never be passed.
*/
2013-02-09 08:02:52 -05:00
/* Mouse */
2013-04-17 18:48:24 -04:00
MAPPER_SET_OPT(EV_KEY, UI_SET_EVBIT, 0)
MAPPER_ADD_KEY(KEY_RIGHTMETA, UI_SET_KEYBIT, 0)
2013-02-09 07:31:58 -05:00
#endif
#endif
/* -------------------------------------------------------------------------- */
/* ----------------------------- THIRD SECTION ----------------------------- */
/* -------------------------------------------------------------------------- */
#ifdef H_JOYMAP
#ifndef H_JOYMAP_SEEN
#define H_JOYMAP_SEEN
2013-02-09 08:02:52 -05:00
KEYMAP(EV_KEY, BTN_MIDDLE, KEY_RIGHTMETA, EV_KEY, 0, -1, +)
2013-02-09 07:31:58 -05:00
#endif
#endif