Xbox One Controller Driver
Using the userland driver for different games will most likely require different active_confs and so I far, I have not implemented an easy way to switch between them. Here I will list all the active_confs for games people have sent me so you don't have to reinvent the wheel.
CastleCrashers:
const int active_conf[26] = {
kVK_ANSI_S, //A
kVK_ANSI_D, //B
kVK_ANSI_A, //X
kVK_ANSI_W, //Y
kVK_ANSI_Q, //LT
kVK_ANSI_E, //RT
kVK_ANSI_Z, //LB
kVK_ANSI_C, //RB
-1, //LEFT
-1, //UP
-1, //RIGHT
-1, //DOWN
-1, //LS_CLICK
-1, //RS_CLICK
-1, //VIEW
kVK_Escape, //MENU
-1, //SYNC
kVK_Return, //Guide
kVK_LeftArrow, //Left Stick
kVK_UpArrow,
kVK_RightArrow,
kVK_DownArrow,
-1, //Right Stick
-1,
-1,
-1
};Game Button Mapping: Here
Binding Of Isaac:
const int active_conf[26] = {
-1, //A
-1, //B
-1, //X
-1, //Y
kVK_ANSI_Q, //LT
kVK_Space, //RT
-1, //LB
kVK_ANSI_E, //RB
-1, //LEFT
-1, //UP
-1, //RIGHT
-1, //DOWN
-1, //LS_CLICK
-1, //RS_CLICK
-1, //VIEW
kVK_Escape, //MENU
-1, //SYNC
kVK_Return, //Guide
kVK_ANSI_A, //Left Stick
kVK_ANSI_W,
kVK_ANSI_D,
kVK_ANSI_S,
kVK_LeftArrow, //Right Stick
kVK_UpArrow,
kVK_RightArrow,
kVK_DownArrow,
};Game Button Mapping: Default