Skip to content

Instantly share code, notes, and snippets.

@charleskeepax
Last active December 21, 2015 06:09
Show Gist options
  • Save charleskeepax/6262253 to your computer and use it in GitHub Desktop.
Save charleskeepax/6262253 to your computer and use it in GitHub Desktop.
Configuration examples for joytokey
static struct axis_map axes[] = {
[0] = {
.min_threshold = -32767,
.min_key = { .sym = XK_Left },
.max_threshold = 32767,
.max_key = { .sym = XK_Right },
},
[1] = {
.min_threshold = -32767,
.min_key = { .str = "p" },
.max_threshold = 32767,
.max_key = { .str = "l" },
},
};
static struct keydef buttons[] = {
[0] = { .str = "q" },
[1] = { .str = "w" },
[2] = { .sym = XK_Up },
[3] = { .sym = XK_Down },
};
@charleskeepax
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment