Skip to content

Azerty keyboard swaps A and Q and so on, many others return X or nothing #14

@CHiPs44

Description

@CHiPs44

In src/lib.rs, I changed pc_keyboard::layouts::AnyLayout::Uk105Key(pc_keyboard::layouts::Uk105Key), to pc_keyboard::layouts::AnyLayout::Azerty(pc_keyboard::layouts::Azerty) for a french AZERTY keyboard.

The result is that A gives a Q, Z a W: it seems letters swapped between QWERTY and AZERTY on the physical keyboard are swapped twice.

For <, >, $ and others, result is X or x depending on Shift state.

Numeric line seems to work fine, 2 gives an é, which is correct.

² key at top left returns nothing.

I don't know if the problem comes from pix_engine or pc-keyboard or other logic.

Copy/paste from debug for ², < and A:

[2023-10-11T20:32:30Z DEBUG pix_engine::engine] Polling event KeyDown { key: None, keymod: NONE, repeat: false }
[2023-10-11T20:32:30Z DEBUG pix_engine::engine] Polling event TextInput { text: "²" }
[2023-10-11T20:32:30Z DEBUG pix_engine::engine] Polling event KeyUp { key: None, keymod: NONE, repeat: false }
[2023-10-11T20:32:44Z DEBUG pix_engine::engine] Polling event KeyDown { key: Some(Less), keymod: NONE, repeat: false }
[2023-10-11T20:32:44Z DEBUG pix_engine::engine] Polling event TextInput { text: "<" }
[2023-10-11T20:32:44Z DEBUG neotron_desktop_bios] hid_get_event() -> KeyPress(X)
[2023-10-11T20:32:44Z DEBUG pix_engine::engine] Polling event KeyUp { key: Some(Less), keymod: NONE, repeat: false }
[2023-10-11T20:32:44Z DEBUG neotron_desktop_bios] hid_get_event() -> KeyRelease(X)
[2023-10-11T20:33:06Z DEBUG pix_engine::engine] Polling event KeyDown { key: Some(A), keymod: NONE, repeat: false }
[2023-10-11T20:33:06Z DEBUG pix_engine::engine] Polling event TextInput { text: "a" }
[2023-10-11T20:33:06Z DEBUG neotron_desktop_bios] hid_get_event() -> KeyPress(A)
[2023-10-11T20:33:06Z DEBUG pix_engine::engine] Polling event KeyUp { key: Some(A), keymod: NONE, repeat: false }
[2023-10-11T20:33:06Z DEBUG neotron_desktop_bios] hid_get_event() -> KeyRelease(A)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions