Giter Club home page Giter Club logo

Comments (10)

pelya avatar pelya commented on July 21, 2024

Will you be using hid-gadget-test utility or the GUI app? You can
reconfigure all keys inside GUI app.

On Thu, Sep 10, 2015 at 2:29 PM, zeratoss [email protected] wrote:

Hey man great job!
I would love to use this with my Qwertz computer.
I saw #29 #29
and know that you have to recompile hid-gadget-test but how would you do
that for different keyboard layouts?


Reply to this email directly or view it on GitHub
#36.

from android-keyboard-gadget.

zeratoss avatar zeratoss commented on July 21, 2024

The hid gadget utility with the duvky script bash interpreter from
http://zx.rs/6/DroidDucky---Can-an-Android-quack-like-a-duck/

from android-keyboard-gadget.

pelya avatar pelya commented on July 21, 2024

Thanks for the link, I've added it to readme.

On Thu, Sep 17, 2015 at 4:04 AM, zeratoss [email protected] wrote:

The hid gadget utility with the duvky script bash interpreter from
http://zx.rs/6/DroidDucky---Can-an-Android-quack-like-a-duck/


Reply to this email directly or view it on GitHub
#36 (comment)
.

from android-keyboard-gadget.

pelya avatar pelya commented on July 21, 2024

Well you just put QWERTY keyboard near your QWERTZ, and note all keys that
are swapped from QWERTY layout. Then you swap the appropriate keys inside
hid-gadget-test sources, and recompile it.

On Fri, Sep 18, 2015 at 1:00 PM, Sergii Pylypenko [email protected]
wrote:

Thanks for the link, I've added it to readme.

On Thu, Sep 17, 2015 at 4:04 AM, zeratoss [email protected]
wrote:

The hid gadget utility with the duvky script bash interpreter from
http://zx.rs/6/DroidDucky---Can-an-Android-quack-like-a-duck/


Reply to this email directly or view it on GitHub
#36 (comment)
.

from android-keyboard-gadget.

zeratoss avatar zeratoss commented on July 21, 2024

The problem is that some keys like "" have no direct equivalent. On Qwertz it is "Alt Gr" + the key right of 0, but on Qwerty that combination does nothing, so i can't switch them.

from android-keyboard-gadget.

tejado avatar tejado commented on July 21, 2024

Check https://github.com/tejado/Authorizer/blob/master/app/src/main/java/net/tjado/authorizer/UsbHidKbd_de_DE.java for a german scancode mapping.

from android-keyboard-gadget.

zeratoss avatar zeratoss commented on July 21, 2024

@tejado thank you that looks really useful.
Can i just add missing keys like
{.opt = "ß" .val =0x2d}, ?

Is it different for values longer than four like
kbdVal.put("€", new byte[] {0x40, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00} );?

from android-keyboard-gadget.

tejado avatar tejado commented on July 21, 2024

With the ß you can. Maybe for € there is no adjustment necessary as it should be just "echo right-alt e | ./hid-gadget-test /dev/hidg0 keyboard" or? (not tested)

from android-keyboard-gadget.

winscripting avatar winscripting commented on July 21, 2024

@zeratoss @tejado

I have the same problem as zeratoss has. I tried to add the \ (german keyboard) but i didn't get it working.
Did you manage it?
Can i change: {.opt = "backslash", .val = 0x31},? But which value?
@tejado I've found this line in your repository for german layout: {0x02, 0x00, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00} But i think, this is a too long.

Any ideas?

from android-keyboard-gadget.

tejado avatar tejado commented on July 21, 2024

@VirtualThin
it isn't too long, it is the complete 8 byte scancode like explained here: https://github.com/pelya/android-keyboard-gadget#how-it-works
So my table is a complete mapping table as the mapping like in https://github.com/pelya/android-keyboard-gadget/blob/a41e6e2511cd5d76bc7aa2c9aa6ea45e98f0b78c/hid-gadget-test/jni/hid-gadget-test.c is done dynamic but is difficult to change to support other keyboard layouts.

The line for the backslash on a german layout is this:
kbdVal.put("", new byte[] {0x40, 0x00, 0x2d, 0x00, 0x00, 0x00, 0x00, 0x00} );

You can change your backslash value to "0x2d" but the problem is, that the modifier key (Right-Alt key in this case, which is 0x40) is missing, to type this on a german keyboard. As you can see in my line, the first byte is representing this modifier key. I'm not so sure how to map this correctly in the dynamic mapping code of pelya. Due to this I created these complete 8 byte scancode mapping tables.

from android-keyboard-gadget.

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.