tuomasjjrasanen / python-uinput

Pythonic API to Linux uinput module
http://tjjr.fi/sw/python-uinput/
GNU General Public License v3.0
292 stars 71 forks source link

wrong keyboard mapping #35

Open roipoussiere opened 4 years ago

roipoussiere commented 4 years ago

This script, based on the provided keyboard example:

import time
import uinput

def main():
    events = (uinput.KEY_A, uinput.KEY_Z,)

    with uinput.Device(events) as device:
        time.sleep(1) 
        device.emit_click(uinput.KEY_A)
        device.emit_click(uinput.KEY_Z)

if __name__ == "__main__":
    main()

... produce qw instead of az.

I use an Azerty keyboard.

clementmoine commented 4 years ago

I have the exact same issue, @roipoussiere did you find any solution ?

roipoussiere commented 4 years ago

No :/