Customize keyboard keys, buttons, and axes actions

Customizing and remapping of the default key, buttons and axis of DroidMote Server for Android, usefull for Android Games with Gamepad Support
User avatar
zulu99
Site Admin
Posts: 2463
Joined: Tue Oct 09, 2012 6:42 am

Re: Customize keyboard keys, buttons, and axes actions

Postby zulu99 » Fri Feb 17, 2017 9:35 pm

Vioner wrote:I've attached a proper Polish .kcm file. I've tested in on my smartphone with a keyboard attached and it works well.

You said .kcm editing should have effect. To make things clear - I only need to edit the droidmote.kcm is /data/system/devices/keychars or should I create a custom.kcm file?
Editing the droidmote.kcm file makes no effect for me.

I'm a 100% sure I'm properly preparing the files.

How soon can you add a Polish character map to the client? :)

Thanks


Perhaps I have not explained well

before i will made an update to the Client, the Server will never receive this characters Ą ą Ć ć Ę ę Ł ł Ń ń Ś ś Ź ź Ż ż

For Now you can test only a generic customization of the default kcm with the characters supported by the Client.

Example:

In the Client you press A and in the Server device you will see Ą becasue you have added in the droidmote.kcm the unicode code U0104 instead of the old character A

Code: Select all

shift, capslock:                    'A'


changed in

Code: Select all

shift, capslock:                    '\u0104'
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto

Vioner
Posts: 7
Joined: Fri Feb 17, 2017 11:47 am

Re: Customize keyboard keys, buttons, and axes actions

Postby Vioner » Fri Feb 17, 2017 9:47 pm

I think I understand it just fine.

Even if I edit the droidmote.kcm like this:

From this:

Code: Select all

key A {
    label:                              'A'
    base:                               'a'
    shift, capslock:                    'A'
}


To this:

Code: Select all

key A {
    label:                              'T'
    base:                               't'
    shift, capslock:                    'T'
}


It has no effect. If I press a, it still displays "a". I don't get it sorry. Shouldn't it display "t" just like I edited? Editing .kl file works just fine, but .kcm doesn't work at all.

Can we discuss this using a quicker form of communication? Please PM me about this if you are interested or message me on https://messenger.com/t/szynkapta

User avatar
zulu99
Site Admin
Posts: 2463
Joined: Tue Oct 09, 2012 6:42 am

Re: Customize keyboard keys, buttons, and axes actions

Postby zulu99 » Fri Feb 17, 2017 9:54 pm

Vioner wrote:I think I understand it just fine.

Even if I edit the droidmote.kcm like this:

From this:

Code: Select all

key A {
    label:                              'A'
    base:                               'a'
    shift, capslock:                    'A'
}


To this:

Code: Select all

key A {
    label:                              'T'
    base:                               't'
    shift, capslock:                    'T'
}


It has no effect. If I press a, it still displays "a". I don't get it sorry. Shouldn't it display "t" just like I edited? Editing .kl file works just fine, but .kcm doesn't work at all.

Can we discuss this using a quicker form of communication? Please PM me about this if you are interested or message me on https://messenger.com/t/szynkapta


try this:


From this:

Code: Select all

key A {
    label:                              'A'
    base:                               'a'
    shift, capslock:                    'A'
}


To this:

Code: Select all

key A {
    label:                              'A'
    base:                               't'
    shift, capslock:                    'A'
}


You can't change the label otherwise you not receive the event when you press a
tested now on my Shield TV and when i press a i have t

if for you not work, maybe there is an error in the kcm file that you modified and Android by default switch on the generic.kcm
restore my original kcm and change only the character a in t
reinstall droidmote server to restore my original files.
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto

Vioner
Posts: 7
Joined: Fri Feb 17, 2017 11:47 am

Re: Customize keyboard keys, buttons, and axes actions

Postby Vioner » Fri Feb 17, 2017 10:12 pm

Just tried. No effect. Also edited generic.kcm and it won't do anything as well.
Tomorrow I'll have more time for more proper tests.

So is it possible for you to test if \u104 character works? Can you test?

User avatar
zulu99
Site Admin
Posts: 2463
Joined: Tue Oct 09, 2012 6:42 am

Re: Customize keyboard keys, buttons, and axes actions

Postby zulu99 » Fri Feb 17, 2017 10:18 pm

Vioner wrote:Just tried. No effect. Also edited generic.kcm and it won't do anything as well.
Tomorrow I'll have more time for more proper tests.

So is it possible for you to test if \u104 character works? Can you test?


Yes it work, the unicode code is \u0104 for Ą
reinstall droidmote server to have my original droidmote.kcm
i edited with es file explorer the file /data/system/devices/keychars/droidmote.kcm

From this:

Code: Select all

key A {
    label:                              'A'
    base:                               'a'
    shift, capslock:                    'A'
}


To this:

Code: Select all

key A {
    label:                              'A'
    base:                               '\u0104'
    shift, capslock:                    'A'
}
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto

Vioner
Posts: 7
Joined: Fri Feb 17, 2017 11:47 am

Re: Customize keyboard keys, buttons, and axes actions

Postby Vioner » Mon Feb 20, 2017 12:37 pm

Hi,
I successfully done what you suggested,but it's not what I want.

Can I help you somehow with updating the client to support the Polish diacritics?

For now it seems like the only thing I can do is give you the unicode symbols:

Code: Select all

ą:   '\u0105'
Ą:   '\u0104'
   
ę: '\u0119'
Ę: '\u0118'

ć: '\u0107'
Ć: '\u0106'

ł: '\u0142'
Ł: '\u0141'

ń: '\u0144'
Ń: '\u0143'

ś:   '\u015b'
Ś:   '\u015a'

ź: '\u017a'
Ź: '\u0179'

ż: '\u017c'
Ż: '\u017b'


I've also noticed that backslash "\" is unsupported by the client as well. Can you add it too?

Let me know if I can help somehow. I'd like to get this done as soon as possible.
Thanks.

User avatar
zulu99
Site Admin
Posts: 2463
Joined: Tue Oct 09, 2012 6:42 am

Re: Customize keyboard keys, buttons, and axes actions

Postby zulu99 » Mon Feb 20, 2017 1:48 pm

Vioner wrote:Hi,
I successfully done what you suggested,but it's not what I want.

Can I help you somehow with updating the client to support the Polish diacritics?

For now it seems like the only thing I can do is give you the unicode symbols:

Code: Select all

ą:   '\u0105'
Ą:   '\u0104'
   
ę: '\u0119'
Ę: '\u0118'

ć: '\u0107'
Ć: '\u0106'

ł: '\u0142'
Ł: '\u0141'

ń: '\u0144'
Ń: '\u0143'

ś:   '\u015b'
Ś:   '\u015a'

ź: '\u017a'
Ź: '\u0179'

ż: '\u017c'
Ż: '\u017b'


I've also noticed that backslash "\" is unsupported by the client as well. Can you add it too?

Let me know if I can help somehow. I'd like to get this done as soon as possible.
Thanks.


Thanks for your suggestion, i will add the support of this characters in the future updates of Client and Server.
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto

User avatar
zulu99
Site Admin
Posts: 2463
Joined: Tue Oct 09, 2012 6:42 am

Re: Customize keyboard keys, buttons, and axes actions

Postby zulu99 » Mon Feb 20, 2017 7:06 pm

Vioner wrote:Hi,
I successfully done what you suggested,but it's not what I want.

Can I help you somehow with updating the client to support the Polish diacritics?

For now it seems like the only thing I can do is give you the unicode symbols:

Code: Select all

ą:   '\u0105'
Ą:   '\u0104'
   
ę: '\u0119'
Ę: '\u0118'

ć: '\u0107'
Ć: '\u0106'

ł: '\u0142'
Ł: '\u0141'

ń: '\u0144'
Ń: '\u0143'

ś:   '\u015b'
Ś:   '\u015a'

ź: '\u017a'
Ź: '\u0179'

ż: '\u017c'
Ż: '\u017b'


I've also noticed that backslash "\" is unsupported by the client as well. Can you add it too?

Let me know if I can help somehow. I'd like to get this done as soon as possible.
Thanks.


These characters are now supported with last Client and Server
Is necessaru update the Client and also the Server
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto

Vioner
Posts: 7
Joined: Fri Feb 17, 2017 11:47 am

Re: Customize keyboard keys, buttons, and axes actions

Postby Vioner » Mon Feb 20, 2017 9:06 pm

Awesome! Thanks :)


Return to “Key layouts / Gamepad customization for DroidMote Server for Android”

Who is online

Users browsing this forum: No registered users and 1 guest