Giter VIP home page Giter VIP logo

Comments (6)

kiilerix avatar kiilerix commented on September 16, 2024

On 06/10/2011 10:04 PM, beloni wrote:

I've got the following output for such ordinary keys:

xf_kb_send_key: unknown key down keycode=97 (X keysym=0x002F)
xf_kb_send_key: unknown key up keycode=97 (X keysym=0x002F)
xf_kb_send_key: unknown key down keycode=129 (X keysym=0xFFAE)
xf_kb_send_key: unknown key up keycode=129 (X keysym=0xFFAE)

This is the keyboard layout ID: -k 0x00010416, which I got from: 0x00010416 Portuguese (Brazilian ABNT2)
Setting the ID or not, the result is the same though

That is with xfreerdp?

Is that with --with-xkbfile ?

If so: Please post the output with --with-debug-x11-kbd .

/Mads

from freerdp-old.

eduardobeloni avatar eduardobeloni commented on September 16, 2024

Using --with-xkbfile or not, the result is the same. Apparently those keys aren't registered in virtualKeyboard (libfreerdp-kbd/keyboard.h), because they weren't found:

DBG_KBD init_keycodes_from_xkb (135): X key code  97 has keyname AB11 -> ??? - not found
DBG_KBD init_keycodes_from_xkb (135): X key code 129 has keyname I129 -> ??? - not found

I think I've just got to add the proper entry in the virtualKeyboard table from keyboard.h. So I'm trying to figure out how are done all these X keycode to RDP keycode conversions, which are black magic for me so far...

from freerdp-old.

kiilerix avatar kiilerix commented on September 16, 2024

beloni wrote, On 06/13/2011 02:27 PM:

Using --with-xkbfile or not, the result is the same. Apparently those keys aren't registered in virtualKeyboard (libfreerdp-kbd/keyboard.h), because they weren't found:

DBG_KBD init_keycodes_from_xkb (135): X key code  97 has keyname AB11 ->  ??? - not found
DBG_KBD init_keycodes_from_xkb (135): X key code 129 has keyname I129 ->  ??? - not found

I think I've just got to add the proper entry in the virtualKeyboard table from keyboard.h. So I'm trying to figure out how are done all these X keycode to RDP keycode conversions, which are black magic for me so far...

Yes, the keyboard handling is messy. I made it more messy by replacing
most of it with (IMHO) simpler and more correct code that avoids using
the actual client side keyboard layout when the actual layout processing
is done on the server side. The old code is however apparently needed
for some platforms.

Note that when you are using xkbfile then -k is only used for telling
the server which layout to use.

It is thus related to the "physical" wiring of your physical keyboard.
The numeric '.' key is usually known by X as KPDL (for delimiter) but in
your case X reports a more anonymous name. Is they keyboard special in
any way?

Do you know which RDP "scan codes" these keys should map to? Could you
try with mstsc.exe and either wireshark or xrdp?

/Mads

from freerdp-old.

eduardobeloni avatar eduardobeloni commented on September 16, 2024

Do you know which RDP "scan codes" these keys should map to? Could you try with mstsc.exe and either wireshark or xrdp?

Yeah, thats exacly the point: figure out what are the right RDP scan codes for these keys...

from freerdp-old.

kiilerix avatar kiilerix commented on September 16, 2024

beloni wrote, On 06/13/2011 04:11 PM:

Do you know which RDP "scan codes" these keys should map to? Could you try with mstsc.exe and either wireshark or xrdp?
Yeah, thats exacly the point: figure out what are the right RDP scan codes for these keys...

The RDP scan codes are often similar to the windows keyboard event
scancodes, so wfreerdp (or some windows tool) might give the right
answer too.

/Mads

from freerdp-old.

eduardobeloni avatar eduardobeloni commented on September 16, 2024

Hello Mads

Thanks very much for the help. I've just pushed the fix.

from freerdp-old.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.