Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot configure the "FN" key #34

Open
NewAlexandria opened this issue Feb 10, 2019 · 2 comments
Open

Cannot configure the "FN" key #34

NewAlexandria opened this issue Feb 10, 2019 · 2 comments
Assignees
Labels
new syntax Requests/bugs that require new KLL syntax
Milestone

Comments

@NewAlexandria
Copy link

  • Firmware/Compiling Origin:
    Configurator app produces the error when compiling KLL from configurator-JSON.

  • KLL Snippet:

  "matrix": [
    {
      "code": "0x01",
      "x": 0,
      "y": 0,
      "w": 4,
      "h": 4,
      "layers": {
        "0": {
          "key": "FN",
          "label": "FN"
        },
        "1": {
          "key": "#:flashMode()",
          "label": "FLASH"
        },
        "2": {
          "key": "#:animation_control(4)",
          "label": "V:RESET"
        }
      },
      "triggers": null
    },
  • OS:
    OSX Mojave

  • Version:
    Configurator 1.0.0

  • Reproduction Steps:

  1. set a key to the FN symbol, in a JSON file
  2. import to configurator
    1.build a KLL file
  • Resulting Issue:
    An error is thrown
[1/50] Generating KLL Layout
FAILED: generatedKeymap.h kll_defs.h usb_hid.h generatedPixelmap.c kll.json 
cd /controller && cmake -E env GITHUB_APIKEY=376423eb012a4587857428bf0bf10ac37415cb99 python3 -m kll --kiibohd-debug --config /controller/Scan/Devices/ISSILed/capabilities.kll /controller/Scan/Devices/MatrixARMPeriodic/capabilities.kll /controller/Scan/Devices/Storage/capabilities.kll /controller/Macro/PartialMap/capabilities.kll /controller/Macro/PixelMap/capabilities.kll /controller/Output/HID-IO/capabilities.kll /controller/Output/USB/capabilities.kll /controller/Debug/latency/capabilities.kll /controller/Debug/led/capabilities.kll /controller/Lib/arm_cortex.kll /controller/Lib/sam.kll --base /controller/Scan/Kira/scancode_map.kll --default /root/.local/share/virtualenvs/Keyboards-41-guJFC/lib/python3.6/site-packages/kll/layouts/stdFuncMap.kll /tmp/tmp.gHvENFpD4L/Kira-Standard-0.kll --partial /root/.local/share/virtualenvs/Keyboards-41-guJFC/lib/python3.6/site-packages/kll/layouts/stdFuncMap.kll /tmp/tmp.gHvENFpD4L/Kira-Standard-1.kll --partial /root/.local/share/virtualenvs/Keyboards-41-guJFC/lib/python3.6/site-packages/kll/layouts/stdFuncMap.kll /tmp/tmp.gHvENFpD4L/Kira-Standard-2.kll --emitter kiibohd --def-output /tmp/tmp.gHvENFpD4L/kll_defs.h --map-output /tmp/tmp.gHvENFpD4L/generatedKeymap.h --hid-output /tmp/tmp.gHvENFpD4L/usb_hid.h --pixel-output /tmp/tmp.gHvENFpD4L/generatedPixelmap.c --json-output /tmp/tmp.gHvENFpD4L/kll.json
ERROR: 'FN' (Layout(name=default)) is an invalid USB HID Code Lookup...
  File "/root/.local/share/virtualenvs/Keyboards-41-guJFC/lib/python3.6/site-packages/kll/common/parse.py", line 115, in hidCode
    hid_code = int(lookup[match_name], 0)
Invalid dictionary lookup, check syntax.
ERROR: OperationSpecificsStage:parse -> /tmp/kll/tmptmp.gHvENFpD4L@['Kira-Standard-0']_processed.kll:13
ERROR: Invalid stage status 'Incomplete' for 'OperationSpecificsStage'.
ninja: build stopped: subcommand failed.
Error in build. Exiting...

Context

On Mac / OSX keyboards, the lower-left key is "Function", and is ASCII code 63. I am unsure if it should be added to a file like this or if the place to put it is wherever this file has gone.

@haata haata self-assigned this Feb 19, 2019
@haata haata added the new syntax Requests/bugs that require new KLL syntax label Feb 19, 2019
@haata haata added this to the v0.5.x milestone Feb 19, 2019
@haata
Copy link
Member

haata commented Feb 19, 2019

Using the FN key on macOS is rather tricky. I need to look into it a bit more, though this may require HID-IO integration (https://github.com/hid-io/hid-io).

@NewAlexandria
Copy link
Author

Well I feel like less of a lazy bum for not figuring it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new syntax Requests/bugs that require new KLL syntax
Projects
None yet
Development

No branches or pull requests

2 participants