mirror of
https://github.com/sezanzeb/input-remapper
synced 2024-11-16 06:12:58 +00:00
Update history.md
This commit is contained in:
parent
e4c23315de
commit
df8649cbad
@ -1,8 +1,5 @@
|
||||
# Why does key-mapper not use xkb configs?
|
||||
|
||||
Branches for some of that stuff exist to archive it instead of loosing it
|
||||
forever. Some of this stuff is based on wild guesses.
|
||||
|
||||
**Initial target** You write a symbols file based on your specified mapping,
|
||||
and that's pretty much it. There were two mappings: The first one is in the
|
||||
keycodes file and contains "<10> = 10", which is super redundant but needed
|
||||
@ -14,6 +11,8 @@ pressing that mouse button and that keyboard button at the same time.
|
||||
|
||||
This was quite mature, pretty much finished and tested.
|
||||
|
||||
It still exists in the [first](https://github.com/sezanzeb/key-mapper/tree/first) branch
|
||||
|
||||
**The second idea** was to write special keycodes known only to key-mapper
|
||||
(256 - 511) into the input device of your mouse in /dev/input, and map
|
||||
those to SHIFT and such, whenever a button is clicked. A mapping would have
|
||||
@ -40,11 +39,11 @@ SHIFT as already used in the system default. The pipeline is like this:
|
||||
But this is a rather complicated approach. The mapping of 10 -> 50 would
|
||||
have to be stored somewhere as well. It would make the mess of configuration
|
||||
files already needed for xkb even worse. This idea was not considered for
|
||||
long, so no "third" branch exists.
|
||||
long
|
||||
|
||||
**Fourth idea**: Based on the second idea, instead of using keycodes greater
|
||||
than 255, use unused keycodes starting from 255, going down. For example
|
||||
pressing key 10 triggers key-mapper to write key 253 into the /dev device,
|
||||
pressing key 10 triggers key-mapper to write key 253 into the /dev device
|
||||
while mapping key 10 to nothing. This has the same problem, the device
|
||||
capabilities ignore many of those keycodes. 140 works, 145 won't, 150 works.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user