Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
93 user(s) are online (82 user(s) are browsing Forums)

Members: 1
Guests: 92

samo79, more...

Support us!

Headlines

 
  Register To Post  

map ALT to WIN-keys
Quite a regular
Quite a regular


See User information
hi,

like the subject says, is there a way to map the RAlt key to RWin key and vice versa? Also for the left ones.

On my keyboard the ALT keys are much bigger than the Windows-keys so it would be much more confortable. It's also more Amigaish

I'm using pre-OS4 upd4. Oh, and it's a PS2 keyboard.

I tryied to swap the keys with Allkeys, with no success. Mabe I did something wrong?

thx

Go to top
Re: map ALT to WIN-keys
Just popping in
Just popping in


See User information
Probably (I don't have OS4 myself) since every key has an id that is sent serially to the computer. It's more about hacking the map settings. If that seems to hard, you can always rewire your keyboard by rewiring the keys.

Go to top
Re: map ALT to WIN-keys
Quite a regular
Quite a regular


See User information
Quote:

Probably (I don't have OS4 myself) since every key has an id that is sent serially to the computer. It's more about hacking
the map settings. If that seems to hard,
you can always rewire your keyboard by rewiring the keys.
map ALT to WIN-keys


rewiring the keys!?! shure! This really seems an elegant solution to me!

in the U-Boot prefs there is a keyboard mapping table but I could not find any
documentation on how to do it! I made a quick search on "another os4 www-site"
as I tought there was a thread obout it; seems I remembered wrong..
maybe a dev could help out? Is this function working in upd4 anyway?

btw, this is my first post in amigans.net so greetz to all!!

Go to top
Re: map ALT to WIN-keys
Just popping in
Just popping in


See User information
Ah, of course, it's the U-Boot that map the keys.

And the non-international keys are hardwired in the system, I presume.

Then it's "just" to open the keyboard, cut the wires to the keys you want to change, and solder some wires in cross to exchange the signals.

If you're not up to it, maybe a friend to you is?

Good luck!



edit: By the way, welcome then!

Go to top
Re: map ALT to WIN-keys
Just can't stay away
Just can't stay away


See User information
You can always write a simple input event handler like my amigakeyremapper program that maps the keys. In fact the sources included can quite easily be modified to do what you want.

You might want to increase the handler priority a little though so the mappings also apply to commodity shortcuts and such, but not so it has higher priority than the keyboard handler...

Go to top
Re: map ALT to WIN-keys
Just can't stay away
Just can't stay away


See User information
Use MMKeyboard it has a config option to do that

For USB users this should do it:

setenv save usb/hid-keyboard/lgui 0x000700E2
setenv save usb/hid-keyboard/rgui 0x000700E6
setenv save usb/hid-keyboard/lalt 0x000700E3
setenv save usb/hid-keyboard/ralt 0x000700E7

To set the menu/start key to R-Amiga use:

setenv save usb/hid-keyboard/rgui 0x00070076

To use the right control as R-Amiga use:

setenv save usb/hid-keyboard/rgui 0x000700E4

Amiga user since 1985
AOS4, A-EON, IBrowse & Alinea Betatester

Ps. I hate the new amigans website. <shudder>
Go to top
Re: map ALT to WIN-keys
Just popping in
Just popping in


See User information
@Amigo1

Quote:
in the U-Boot prefs there is a keyboard mapping table but I could not find any
documentation on how to do it!


See Documentation/Keyboards.doc on the OS4Final CD.

Go to top
Re: map ALT to WIN-keys
Quite a regular
Quite a regular


See User information
@TetiSoft

a bit late, but thanks

And for the sake of completeness:


so whoever has the same problem, this are the settings which work form me on Sam with USB and AmigaONE with ps/2 keyboard:

In Uboot type the following:

setenv kbddev_mapping 0xe05b=0x64 0x38=0x66 0xe05c=0x65 0xe038=0x67 ->enter
saveenv ->enter

and boot into OS4.

Go to top
Re: map ALT to WIN-keys
Quite a regular
Quite a regular


See User information
@Amigo1

I saw you solved it, but I might just comment anyway.

AllKeys cannot map qualifier keys, only the key press and release. I have thought about expanding my MapMenu tool to map other keys because that one is designed to map qualifier keys only but currently only maps the meny key to something...

Software developer for Amiga OS3 and OS4.
Develops for OnyxSoft and the Amiga using E and C and occasionally C++
Go to top
Re: map ALT to WIN-keys
Amigans Defender
Amigans Defender


See User information
@Amigo1
There is a new feature in Amiga OS to easily swap them but it is not yet released to the public.

In the mean time, you can use the key remapping features already present to make it happen with PS/2 and USB keyboards as already explained.

ExecSG Team Lead
Go to top
Re: map ALT to WIN-keys
Quite a regular
Quite a regular


See User information
@ssolie

looking forward to that feature then!

At the moment keys swapping seems to work rightfully only with PS/2 (if setting the UBoot variables either directly in UBoot, with the Shell on OS4, or with the UBoot prefs tool on AmigaONE XE), but not with USB (both AmigaONE XE and SamFlex).

I tried setting the rgui variable in envarc:usb/hid.keyboard/ to map said key to the "Application-key" (rgui variable containing the HID Usage Table value HEX 0x00070065): I press the "Application/Menu-Key" and I get "Right-Amiga".
ralt can then be set to remap the "Right-Alt Key" to the "Right-GUI Key" (ralt variable containing 0x000700e7). I press "Right-GUI Key" and it's like pressing "Right-ALT".

but if you try to map the rgui to ralt and vice versa (same thing applies to lgui and lalt) it's not working
(ralt variable contains 0x000700e7 and rgui variable contains 0x000700e6); you end up with no right-alt nor right-Amiga key.
It behaves the same on AmigaOne XE and SamFlex, both with OS4.1u2 (SamFlex dual boots to plain 4.1 but it's not working either).

Go to top
Re: map ALT to WIN-keys
Amigans Defender
Amigans Defender


See User information
@Amigo1
Maybe the USB key remapping feature is not as robust as it should be. I personally haven't tried it with USB since I have the swapping feature.

With the updated OS components, the key swapping works equally well with PS/2 or USB keyboards.

ExecSG Team Lead
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project