From ed7ba75fdcf8da1785303b5aaa6b5533738452e0 Mon Sep 17 00:00:00 2001 From: cyber-sushi <99445392+cyber-sushi@users.noreply.github.com> Date: Tue, 6 Jun 2023 20:21:31 +0200 Subject: [PATCH] Initial commit --- config examples/config-playstation.toml | 30 +++++++++++++++++++++++ config examples/config-stadia.toml | 32 +++++++++++++++++++++++++ config examples/config-xbox.toml | 31 ++++++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 config examples/config-playstation.toml create mode 100644 config examples/config-stadia.toml create mode 100644 config examples/config-xbox.toml diff --git a/config examples/config-playstation.toml b/config examples/config-playstation.toml new file mode 100644 index 0000000..55e5e34 --- /dev/null +++ b/config examples/config-playstation.toml @@ -0,0 +1,30 @@ +#SAMPLE CONFIG FILE FOR PLAYSTATION CONTROLLERS +#Put this in ~/.config/makima and rename it to config.toml +#You can find the available keycodes in /usr/include/linux/input-event-codes.h +#If you're not sure which keycode corresponds to which key, you can run 'evtest', select your keyboard/mouse and press the corresponding key/button. +#This config file is tested for DualShock 3, DualShock 4 and DualSense controllers. When using a different controller, if no specific config file for your device is available, change the keycodes on the left according to those of your controller (evtest is your friend again). If your controller has a button to enable/disable analog sticks, make sure they're enabled. + +[keys] +#CONTROLLER MOUSE/KEYBOARD BINDINGS +BTN_NORTH = ["KEY_LEFTMETA", "KEY_J"] #triangle +BTN_EAST = ["KEY_ENTER"] #circle +BTN_SOUTH = ["KEY_LEFTSHIFT"] #X +BTN_WEST = ["KEY_LEFTMETA"] #square +BTN_TR = ["KEY_LEFTMETA", "KEY_L"] #R1 +BTN_TR2 = ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_L"] #R2 +BTN_TL = ["KEY_LEFTMETA", "KEY_K"] #L1 +BTN_TL2 = ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_K"] #L2 +BTN_START = ["KEY_LEFTMETA", "KEY_D"] #start +BTN_SELECT = ["KEY_ESC"] #select +BTN_THUMBR = ["KEY_LEFTMETA", "KEY_Q"] #R3 +BTN_THUMBL = ["BTN_MIDDLE"] #L3 +BTN_MODE = ["KEY_SPACE"] #PS button +BTN_DPAD_UP = ["KEY_UP"] #directional pad up +BTN_DPAD_RIGHT = ["KEY_RIGHT"] #directional pad right +BTN_DPAD_DOWN = ["KEY_DOWN"] #directional pad down +BTN_DPAD_LEFT = ["KEY_LEFT"] #directional pad left + +[settings] +ANALOG_SENSITIVITY = "6" #lower value is higher sensitivity, minimum 1 +MOVE_MOUSE_WITH_STICK = "left" #left, right or none +GRAB_DEVICE = "false" #gain exclusivity on the device diff --git a/config examples/config-stadia.toml b/config examples/config-stadia.toml new file mode 100644 index 0000000..ad96f80 --- /dev/null +++ b/config examples/config-stadia.toml @@ -0,0 +1,32 @@ +#SAMPLE CONFIG FILE FOR GOOGLE STADIA CONTROLLERS +#Put this in ~/.config/makima and rename it to config.toml +#You can find the available keycodes in /usr/include/linux/input-event-codes.h +#If you're not sure which keycode corresponds to which key, you can run 'evtest', select your keyboard/mouse and press the corresponding key/button. +#This config file is tested for Stadia controllers. When using a different controller, if no specific config file for your device is available, change the keycodes on the left according to those of your controller (evtest is your friend again). If your controller has a button to enable/disable analog sticks, make sure they're enabled. + +[keys] +#CONTROLLER MOUSE/KEYBOARD BINDINGS +BTN_WEST = ["KEY_LEFTMETA", "KEY_J"] #Y +BTN_EAST = ["KEY_ENTER"] #X +BTN_SOUTH = ["KEY_LEFTSHIFT"] #A +BTN_NORTH = ["KEY_LEFTMETA"] #B +BTN_TR = ["KEY_LEFTMETA", "KEY_L"] #R1 +BTN_TRIGGER_HAPPY3 = ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_L"] #R2 +BTN_TL = ["KEY_LEFTMETA", "KEY_K"] #L1 +BTN_TRIGGER_HAPPY4 = ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_K"] #L2 +BTN_START = ["KEY_LEFTMETA", "KEY_D"] #menu/start +BTN_SELECT = ["KEY_ESC"] #options/select +BTN_TRIGGER_HAPPY1 = ["BTN_RIGHT"] #screenshot +BTN_TRIGGER_HAPPY2 = ["BTN_LEFT"] #share/bubbles? +BTN_THUMBR = ["KEY_LEFTMETA", "KEY_Q"] #R3 +BTN_THUMBL = ["BTN_MIDDLE"] #L3 +BTN_MODE = ["KEY_SPACE"] #Stadia button +BTN_DPAD_UP = ["KEY_UP"] #directional pad up +BTN_DPAD_RIGHT = ["KEY_RIGHT"] #directional pad right +BTN_DPAD_DOWN = ["KEY_DOWN"] #directional pad down +BTN_DPAD_LEFT = ["KEY_LEFT"] #directional pad left + +[settings] +ANALOG_SENSITIVITY = "6" #lower value is higher sensitivity, minimum 1 +MOVE_MOUSE_WITH_STICK = "left" #left, right or none +GRAB_DEVICE = "false" #gain exclusivity on the device diff --git a/config examples/config-xbox.toml b/config examples/config-xbox.toml new file mode 100644 index 0000000..5b516a8 --- /dev/null +++ b/config examples/config-xbox.toml @@ -0,0 +1,31 @@ +#SAMPLE CONFIG FILE FOR XBOX CONTROLLERS +#Put this in ~/.config/makima and rename it to config.toml +#You can find the available keycodes in /usr/include/linux/input-event-codes.h +#If you're not sure which keycode corresponds to which key, you can run 'evtest', select your keyboard/mouse and press the corresponding key/button. +#This config file is tested for Xbox 360, Xbox One and Xbox Elite 2 controllers. When using a different controller, if no specific config file for your device is available, change the keycodes on the left according to those of your controller (evtest is your friend again). If your controller has a button to enable/disable analog sticks, make sure they're enabled. + +[keys] +#CONTROLLER MOUSE/KEYBOARD BINDINGS +BTN_NORTH = ["KEY_LEFTMETA", "KEY_J"] #X +BTN_EAST = ["KEY_ENTER"] #Y +BTN_SOUTH = ["KEY_LEFTSHIFT"] #A +BTN_WEST = ["KEY_LEFTMETA"] #B +BTN_TR = ["KEY_LEFTMETA", "KEY_L"] #RB +BTN_TR2 = ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_L"] #RT +BTN_TL = ["KEY_LEFTMETA", "KEY_K"] #LB +BTN_TL2 = ["KEY_LEFTMETA", "KEY_LEFTSHIFT", "KEY_K"] #LT +BTN_START = ["KEY_LEFTMETA", "KEY_D"] #start +BTN_SELECT = ["KEY_ESC"] #back +BTN_THUMBR = ["KEY_LEFTMETA", "KEY_Q"] #RS +BTN_THUMBL = ["BTN_MIDDLE"] #LS +BTN_MODE = ["KEY_SPACE"] #Xbox button +BTN_DPAD_UP = ["KEY_UP"] #directional pad up +BTN_DPAD_RIGHT = ["KEY_RIGHT"] #directional pad right +BTN_DPAD_DOWN = ["KEY_DOWN"] #directional pad down +BTN_DPAD_LEFT = ["KEY_LEFT"] #directional pad left + +[settings] +ANALOG_SENSITIVITY = "6" #lower value is higher sensitivity, minimum 1 +MOVE_MOUSE_WITH_STICK = "left" #left, right or none +GRAB_DEVICE = "false" #gain exclusivity on the device +XBOX_CONTROLLER = "true" #xbox controllers use different values for analog sticks so it needs to be specified