Last active
December 21, 2015 06:09
-
-
Save charleskeepax/6262253 to your computer and use it in GitHub Desktop.
Configuration examples for joytokey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" }, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code is used in my blog post here: http://www.charles-keepax.co.uk/blog/KeypressesFromJoystick.html