Commit Graph

7 Commits (lipc-refactor)

Author SHA1 Message Date
nirenjan 4422ee89c0 feat: Add script to validate layout file
This change adds a Python script to validate the compiled layout file
and optionally dump the contents.
2026-04-22 15:18:54 -07:00
nirenjan 3c02fe5ec2 refactor: Rearrange files to avoid duplicate code issue
Prior to this change, SonarQube complains about duplicated code in the
symlinked header files. This change reworks the layout so that the
installed headers all reside under the 'includes' directory, and the
meson.build files are updated to reflect the new paths.
2026-04-20 10:28:24 -07:00
nirenjan 75f0125f54 feat: Add layout file parsing to x52d
This change is an initial step to adding support for profiles in x52d.
This will allow the user to create a keyboard layout in an easy to
read/write text based format, and have it compiled into a flat layout
that's easy for the daemon to parse and load into memory. This layout
can then be used to map a user's action key to the actual input usage
needed. This is necessary, because keyboards don't actually send the
character that is typed, but just the position on the keyboard. For
example, on a French AZERTY keyboard, the A key would actually send the
usage for `Keyboard_q_and_Q`. The OS would translate that into the
letter 'a' (or 'A' if Shift key is held) and pass that to the active
window.

This commit adds the full logic necessary for the layout loading,
validation and compiling, as well as tests for the compiler and loader.
2026-04-04 23:16:51 -07:00
nirenjan abdf47d721 Delete obsolete files 2021-07-29 23:55:07 -07:00
nirenjan 4a1ca0badb Retrieve hidraw file from command line 2015-11-28 10:06:38 -08:00
Nirenjan Krishnan e57e8ced7f Update with HID raw output format
Tools folder now contains a program to read and dump the raw HID output
2012-10-03 01:02:21 -07:00
Nirenjan Krishnan 9006404f90 Move readjoy to its own folder under tools 2012-10-02 11:55:12 -07:00