-
simillar to #443 I want to do something similar with my Scuf envision controller. it has these extra keys called "G Keys" which by default control your audio (vol up, down mute etc) I want to map them to their own keyboard key, but the original function (vol controls) sometimes triggers instead of my remapping (which happens randomly). How can I COMPLETLY disable the original function? here is how my preset looks config[
{
"input_combination": [
{
"type": 1,
"code": 315,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_HOME",
"name": "G1",
"mapping_type": "key_macro",
"release_combination_keys": false
},
{
"input_combination": [
{
"type": 1,
"code": 316,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 114,
"origin_hash": "6549e276dcf6ffba08e2fc451219a32a"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_PAGEUP",
"name": "G2",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 317,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 115,
"origin_hash": "6549e276dcf6ffba08e2fc451219a32a"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_END",
"name": "G3",
"mapping_type": "key_macro",
"release_combination_keys": false
},
{
"input_combination": [
{
"type": 1,
"code": 318,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 113,
"origin_hash": "6549e276dcf6ffba08e2fc451219a32a"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_LEFTSHIFT + KEY_F12",
"name": "G4",
"mapping_type": "key_macro",
"release_combination_keys": false
},
{
"input_combination": [
{
"type": 1,
"code": 319,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "disable",
"name": "G5",
"mapping_type": "key_macro",
"release_combination_keys": false
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 306,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_LEFTMETA + KEY_EQUAL",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 307,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_LEFTALT + KEY_F4",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 305,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_LEFTMETA + KEY_MINUS",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 3,
"code": 17,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37",
"analog_threshold": 1
}
],
"target_uinput": "keyboard",
"output_symbol": "XF86AudioLowerVolume",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 3,
"code": 17,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37",
"analog_threshold": -1
}
],
"target_uinput": "keyboard",
"output_symbol": "XF86AudioRaiseVolume",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 3,
"code": 16,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37",
"analog_threshold": 1
}
],
"target_uinput": "keyboard",
"output_symbol": "XF86AudioNext",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 3,
"code": 16,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37",
"analog_threshold": -1
}
],
"target_uinput": "keyboard",
"output_symbol": "XF86AudioPrev",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 312,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "XF86AudioMute",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 704,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "disable",
"mapping_type": "key_macro",
"release_combination_keys": false
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 304,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_LEFTMETA + KEY_LEFTCTRL + KEY_S",
"mapping_type": "key_macro"
}
] |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
so figured it out. this controller works a little weirdly. These "extra" g keys are actually just regular Gampad buttons ( a b X, etc...) plus XF86Audio keys. so what I needed to do is to isolate the XF86Audio keys and then map them to I did this by making a mapping for GKEY# + some random button in the gui and then going into advanced and removing all buttons except the XF86Audio key this is what I ended up with the disables are all the way at the end config[
{
"input_combination": [
{
"type": 1,
"code": 315,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_HOME",
"name": "G1",
"mapping_type": "key_macro",
},
{
"input_combination": [
{
"type": 1,
"code": 316,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 114,
"origin_hash": "6549e276dcf6ffba08e2fc451219a32a"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_PAGEUP",
"name": "G2",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 317,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 115,
"origin_hash": "6549e276dcf6ffba08e2fc451219a32a"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_END",
"name": "G3",
"mapping_type": "key_macro",
},
{
"input_combination": [
{
"type": 1,
"code": 318,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 113,
"origin_hash": "6549e276dcf6ffba08e2fc451219a32a"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_LEFTSHIFT + KEY_F12",
"name": "G4",
"mapping_type": "key_macro",
},
{
"input_combination": [
{
"type": 1,
"code": 319,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "disable",
"name": "G5",
"mapping_type": "key_macro",
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 306,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_LEFTMETA + KEY_EQUAL",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 307,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_LEFTALT + KEY_F4",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 305,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_LEFTMETA + KEY_MINUS",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 3,
"code": 17,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37",
"analog_threshold": 1
}
],
"target_uinput": "keyboard",
"output_symbol": "XF86AudioLowerVolume",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 3,
"code": 17,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37",
"analog_threshold": -1
}
],
"target_uinput": "keyboard",
"output_symbol": "XF86AudioRaiseVolume",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 3,
"code": 16,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37",
"analog_threshold": 1
}
],
"target_uinput": "keyboard",
"output_symbol": "XF86AudioNext",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 3,
"code": 16,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37",
"analog_threshold": -1
}
],
"target_uinput": "keyboard",
"output_symbol": "XF86AudioPrev",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 312,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "XF86AudioMute",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 704,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "disable",
"mapping_type": "key_macro",
},
{
"input_combination": [
{
"type": 1,
"code": 311,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
},
{
"type": 1,
"code": 304,
"origin_hash": "b4d4c75a8c188c20d61daa527ecf2e37"
}
],
"target_uinput": "keyboard",
"output_symbol": "KEY_LEFTMETA + KEY_LEFTCTRL + KEY_S",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 114,
"origin_hash": "6549e276dcf6ffba08e2fc451219a32a"
}
],
"target_uinput": "keyboard",
"output_symbol": "disable",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 115,
"origin_hash": "6549e276dcf6ffba08e2fc451219a32a"
}
],
"target_uinput": "keyboard",
"output_symbol": "disable",
"mapping_type": "key_macro"
},
{
"input_combination": [
{
"type": 1,
"code": 113,
"origin_hash": "6549e276dcf6ffba08e2fc451219a32a"
}
],
"target_uinput": "keyboard",
"output_symbol": "disable",
"mapping_type": "key_macro"
}
```
</details> |
Beta Was this translation helpful? Give feedback.
so figured it out. this controller works a little weirdly. These "extra" g keys are actually just regular Gampad buttons ( a b X, etc...) plus XF86Audio keys.
so what I needed to do is to isolate the XF86Audio keys and then map them to
disable
I did this by making a mapping for GKEY# + some random button in the gui and then going into advanced and removing all buttons except the XF86Audio key
this is what I ended up with the disables are all the way at the end
config