English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware

 
 
Thread Tools
Old 17 November 2021, 06:18   #1
guybrush
Registered User
 
Join Date: Jul 2015
Location: usa
Posts: 243
Is possible to re-assign amiga keycodes to support different keyboards?

I am thinking about how the Amiga 1200 keyboard is actually working: the signal is coming from the keyboard chip, and the IC get that signal and knows that the key pressed is for example A, because it receive the hexadecimal code from the keyboard chip.


But what if I want to change that "table" that the Amiga use; so if I send a different hex code I can assign it to a different key? Would that be possible ?


You may ask why you want to do that... And the question is totally legit. I want to use a keyboard that is not made for the Amiga. I can use a keyboard adapter of course, but those are responding to hex values sent by PS2 or USB keyboards. What if I want to use home as Amiga key, or Pause as Help button? I can't do that because the USB or PS2 adapter is not coded to do that; and to my knowledge, no adapter allow you to modify what you get from the PC keyboard; they just assume that what is on the Amiga keyboard match 1:1 with the PC keyboard, and for Del and Home they pick 2 keys and call the day.


I would like instead to be able to control which keys from the PS2 or USB keyboard I trigger on the amiga, and this is why I started to look at how to achieve this on the Amiga itself. I assume that there is something on the ROM that tell the Amiga how to recognize keys, so there must be a way to override that and customize the association right? Even if it works only in Workbench that would be OK to be honest, but ideally I wish I could make this change to be booted when the Amiga boot up
guybrush is offline  
Old 17 November 2021, 08:23   #2
Marce
Banned
 
Join Date: Oct 2021
Location: SA
Posts: 283
Quote:
Originally Posted by guybrush View Post
I am thinking about how the Amiga 1200 keyboard is actually working: the signal is coming from the keyboard chip, and the IC get that signal and knows that the key pressed is for example A, because it receive the hexadecimal code from the keyboard chip.


But what if I want to change that "table" that the Amiga use; so if I send a different hex code I can assign it to a different key? Would that be possible ?


You may ask why you want to do that... And the question is totally legit. I want to use a keyboard that is not made for the Amiga. I can use a keyboard adapter of course, but those are responding to hex values sent by PS2 or USB keyboards. What if I want to use home as Amiga key, or Pause as Help button? I can't do that because the USB or PS2 adapter is not coded to do that; and to my knowledge, no adapter allow you to modify what you get from the PC keyboard; they just assume that what is on the Amiga keyboard match 1:1 with the PC keyboard, and for Del and Home they pick 2 keys and call the day.


I would like instead to be able to control which keys from the PS2 or USB keyboard I trigger on the amiga, and this is why I started to look at how to achieve this on the Amiga itself. I assume that there is something on the ROM that tell the Amiga how to recognize keys, so there must be a way to override that and customize the association right? Even if it works only in Workbench that would be OK to be honest, but ideally I wish I could make this change to be booted when the Amiga boot up
perhaps you are looking for a program as KME which is a keymap editor?
around 2001-2002 I created a driver for spanish keyboards for winuae using such proggy
Marce is offline  
Old 17 November 2021, 09:15   #3
guybrush
Registered User
 
Join Date: Jul 2015
Location: usa
Posts: 243
Quote:
Originally Posted by Marce View Post
perhaps you are looking for a program as KME which is a keymap editor?
around 2001-2002 I created a driver for spanish keyboards for winuae using such proggy

Thanks, isn't a keymap just re-assigning the same input coming from the keyboard, to a different character in a different set?



For example, the right CTRL of a windows keyboard has keycode 163, while the right Amiga key has hex 67; If I want to re-assign this key on the windows keyboard, I need to tell Workbench/Intuition that the key associated to 67 should be triggered when the code 163 is registered.


Can you do that with a keymap? Basically you need to tell the Amiga to not use a specific code but another one
guybrush is offline  
Old 17 November 2021, 09:31   #4
Jope
-
 
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,861
The qualifiers cannot be remapped with a keymap, only the printable keys.. You would need to do this with an external adapter.
Jope is offline  
Old 17 November 2021, 09:42   #5
guybrush
Registered User
 
Join Date: Jul 2015
Location: usa
Posts: 243
Quote:
Originally Posted by Jope View Post
The qualifiers cannot be remapped with a keymap, only the printable keys.. You would need to do this with an external adapter.

I see, so there is no way to change the assignments via software.


Considering that no adapter I am aware of, is able to remap Amiga keys; how would I achieve the switch of the functionality of the right CTRL key to be the right Amiga key? In an emulator I can do that easily but doing it on a real Amiga has been quite an issue (my keyboard does not have 2 WIN keys, so I am lacking the right Amiga key at this point)
guybrush is offline  
Old 17 November 2021, 14:23   #6
coldacid
WinUAE 4000/40, V4SA
 
coldacid's Avatar
 
Join Date: Apr 2020
Location: East of Oshawa
Posts: 538
You should be able to use the Apps/Context key as the right Amiga key in WinUAE. (Which leads in my case to having my right Amiga key to the immediate left of my left Amiga key due to the physical layout of my keyboard, the current Microsoft ergonomic keyboard.)
coldacid is offline  
Old 17 November 2021, 18:52   #7
guybrush
Registered User
 
Join Date: Jul 2015
Location: usa
Posts: 243
Quote:
Originally Posted by coldacid View Post
You should be able to use the Apps/Context key as the right Amiga key in WinUAE. (Which leads in my case to having my right Amiga key to the immediate left of my left Amiga key due to the physical layout of my keyboard, the current Microsoft ergonomic keyboard.)

Yes, that I know, but I am trying to do the same on a real Amiga. The other alternative is to go hunting for an old keyboard with 2 WIN keys... which are basically abandoned at this point because all new keyboard seems to have the FN and menu keys on the right as standard.
guybrush is offline  
Old 18 November 2021, 01:31   #8
QuikSanz
Registered User
 
QuikSanz's Avatar
 
Join Date: May 2021
Location: Los Angeles / USA
Posts: 135
@guybrush,

Lyra3 adapter? here " http://amigakit.amiga.store/lyra-key...6&currency=GBP "

Chris
QuikSanz is offline  
Old 18 November 2021, 03:33   #9
guybrush
Registered User
 
Join Date: Jul 2015
Location: usa
Posts: 243
Quote:
Originally Posted by QuikSanz View Post
@guybrush,

Lyra3 adapter? here " http://amigakit.amiga.store/lyra-key...6&currency=GBP "

Chris

Thanks; is that able to take a USB or PS2 keyboard input and allow to change the keycode sent? I thought the Lyra is only usable with original ribbon keyboards and does not support remapping
guybrush is offline  
Old 18 November 2021, 05:48   #10
QuikSanz
Registered User
 
QuikSanz's Avatar
 
Join Date: May 2021
Location: Los Angeles / USA
Posts: 135
models, 1 for wedge, 1 for big box. There is a programming tool for it on the aminet to swap keys around "lyra3 tool".

Chris
QuikSanz is offline  
Old 20 November 2021, 16:00   #11
Krashan
Hardware Designer
 
Join Date: Aug 2018
Location: Bialystok/Poland
Age: 50
Posts: 178
Quote:
Originally Posted by guybrush View Post
But what if I want to change that "table" that the Amiga use; so if I send a different hex code I can assign it to a different key? Would that be possible? You may ask why you want to do that... And the question is totally legit. I want to use a keyboard that is not made for the Amiga. I can use a keyboard adapter of course, but those are responding to hex values sent by PS2 or USB keyboards. What if I want to use home as Amiga key, or Pause as Help button? I can't do that because the USB or PS2 adapter is not coded to do that;
It depends on this keyboard you want to use. A PC keyboard has its own controller chip, which scans the keyboard matrix, detects keydown and keyup events then sends PC compatible codes via USB or PS/2 interface. Then you build your own USB->Amiga keyboard adapter (which bypasses controller chip on A1200 mobo, as all of them do). You can either hardcode your favourite mapping into this adapter, or even make it configurable somehow.
Krashan is offline  
Old 21 November 2021, 20:12   #12
guybrush
Registered User
 
Join Date: Jul 2015
Location: usa
Posts: 243
Quote:
Originally Posted by Krashan View Post
It depends on this keyboard you want to use. A PC keyboard has its own controller chip, which scans the keyboard matrix, detects keydown and keyup events then sends PC compatible codes via USB or PS/2 interface. Then you build your own USB->Amiga keyboard adapter (which bypasses controller chip on A1200 mobo, as all of them do). You can either hardcode your favourite mapping into this adapter, or even make it configurable somehow.

I see; thanks for the info. So basically I need a "translator" in the middle, between the USB/PS2 keyboard and the Amiga.


Every comment seems to point at details that would be solved with a Lyra device at this point. I thought that since the Amiga has to have a conversion table for codes coming in from the keyboard controller, it could be manipulated to send instead a different keycode, but so far nobody confirmed this so I guess it is not possible.
guybrush is offline  
Old 22 November 2021, 08:19   #13
Jope
-
 
Jope's Avatar
 
Join Date: Jul 2003
Location: Helsinki / Finland
Age: 43
Posts: 9,861
The setmap/keymaps feature is this conversion table, but unfortunately it does not support remapping the qualifiers.

Otherwise you would write or find an input handler which sits on the input chain with the highest priority and does the translation before any other input handler finds it. This will work when the OS is running and when using 100% os friendly software.
Jope is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Amiga keycaps for mechanical keyboards? guybrush Hardware mods 4 20 August 2021 07:14
Help support crowdfund for "Retro Computer inspired USB PC Keyboards & Mice" simulant Amiga scene 54 10 July 2020 12:00
Dreaming about mechanical Amiga keyboards arnljot Hardware mods 10 19 January 2020 20:58
Amiga (2000) Keyboards Drilldown intric8 Amiga scene 13 20 September 2019 20:18
FA: Two Amiga 4000 Keyboards nlandas MarketPlace 0 27 July 2019 01:53

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:50.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08372 seconds with 15 queries