04 August 2012, 01:22 | #1 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
Problem with ABNT-2 Keyboard.
Hi Toni, I have a brazillian ABNT-2 keyboard, it has some keys not present on the standard style US keyboard and I use a ABNT-2 keymap from the old ATO.
Interestingly, there is one extra key, near the right shift, that is KEY_73 from Input Dialog that dont appears to have a corresponding key on the ABNT-2 keymap. This key should emit the slash and interrogation symbols, but unfortunately it doesnt. I can only enter these symbols with the ALT key. If some Brazilian guy uses WinUAE and could say how him approached to fix it, I would like to greet you. Or else, if Toni could say if there is a way to put ALT+KEY macros in WinUAE for me to generate the corresponding symbol on the Amiga side, this would make me very glad, too. Thanks! |
04 August 2012, 11:39 | #2 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,504
|
Quote:
Remap the key normally in Slot 2 (or later slot, not Slot 1 because you wanted to keep normal non-qualifier key intact) Then click "Qualifiers" column and select one or more qualifier key(s). Input target will now only trigger when mapped key is pressed and all selected qualifiers are currently pressed. Original key in slot 1 now only triggers when no qualifiers are pressed. Numeric Qualifiers are user-configurable. (Remap another key or button using Remap feature and map it to "Qualifier n" input target) |
|
04 August 2012, 12:12 | #3 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
Ops, sorry Toni, I think I dont explained correctly.
What I tried to meant is if there is a way to generate ALT+KEY keystrokes on AmigaOS with WinUAE. |
04 August 2012, 12:18 | #4 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,504
|
Quote:
Map ALT to slot #1 and "KEY" to slot #2. Input target press: ALT press is sent first and then "KEY" press. Input target release: "KEY" release is sent first and then comes ALT release. |
|
04 August 2012, 12:47 | #5 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
Thanks Toni.
|
04 August 2012, 13:20 | #6 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
Hi Toni, I am using WinUAE to remap ALT+Q and ALT+W to one same key, but the former I would like to activate only with the shift key pressed too. In my testings, WinUAE is able to detect the shift key and it chooses the right slots to execute, but when I press the key together with shift what is sent to AmigaOS is ALT+SHIFT+W and not only ALT+W. This propositional by design or it is a bug and there is a way to circumvent it?
Thanks. Last edited by Leandro Jardim; 04 August 2012 at 15:19. |
04 August 2012, 13:32 | #7 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,504
|
It is quite difficult because it should send SHIFT release event first, then send ALT, then W. When W is released, it should send W release, ALT release and finally SHIFT press again to keep universe in sane state ("I have SHIFT pressed but it isn't detected after I press W? WTF?!")
I guess something like this would work: Implement "inverted" key events, when press event comes, it sends release event (if key is already in pressed state) and then release event comes, it sends press event (if key was released by previous press event and it is still in released state). This thing is getting really too complex... EDIT: Or maybe it is simpler to add support for Qualifiers that are reported as released. Probably less messy from GUI point of view.. EDIT2: It is decided, "Release" Qualifiers will be done Last edited by Toni Wilen; 04 August 2012 at 17:23. |
04 August 2012, 23:36 | #8 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
Thanks Toni, you are a master, a FileMaster (c)!
Last edited by Leandro Jardim; 05 August 2012 at 01:01. |
05 August 2012, 08:30 | #9 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,504
|
http://www.winuae.net/files/b/winuae.zip adds "release" qualifier support.
Not very well tested yet, as usual.. Map key(s) normally but instead of normal SHIFT qualifier, select SHIFT [R]. This causes Shift to be temporarily released while mapped key(s) are sent. |
06 August 2012, 00:25 | #10 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
I tested it with my ABNT-II keyboard and works perfectly.
One thing though, are that many menu entries marked with [R]. Now the pop-up menu doubled in size. I am not sure, but its not better removing all them and putting a option "reverse" directly in the list box to auto-reverse all selected modifiers? After all this option is only useful with modifiers like alt, shift or ctrl. Or... One much better option could be remove that many [R] and automatically reverse all selected alt, shift or ctrl, because if you doesnt do this they will always interfere to the final output of the desired keystroke. After all, if the user wants to simulate an alt for example, him should explicitly put a ALT in the slot 1-8, its there for that and its far more flexible. But as I had said, I am not sure about this, and I am surprised by the complexity of the input system of WinUAE, that looks like a simple programming language... Last edited by Leandro Jardim; 23 August 2012 at 08:49. |
01 September 2012, 01:02 | #11 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
Toni, in the last 2.4.2, the new input mapping does not work correcly. When I remap ALT+Q and ALT+W to KEY_73 and SHIFT + KEY_73, respectively, it does not recognizes the 'SHIFT release" qualifier.
The same happens with 2.5.0. |
01 September 2012, 08:56 | #12 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,504
|
Attach config file (always do it when talking about input config)
|
01 September 2012, 22:16 | #13 | |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
Quote:
How can I enter a new qualifier (line SHIFT [R]) in the new beta? It pop ups a new window, but I could not edit or modify its settings... Last edited by Leandro Jardim; 27 March 2019 at 13:40. |
|
02 September 2012, 11:16 | #14 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,504
|
"W" also needs to have Shift[R] set. I guess it "worked" previously due to other bug..
No qualifiers active: all slots without qualifiers are triggered. If one or more qualifiers active: only slots with exactly matching qualifier combinations are triggered, if no match in any slot: all slots without qualifiers triggered. Note that there is another bug in b14 that prevents setting qualifier to non-custom events. |
02 September 2012, 20:27 | #15 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
|
03 September 2012, 17:01 | #16 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,504
|
What? It still does exactly same. ("unrelease" shift, W, release shift)
|
06 September 2012, 05:34 | #17 |
Registered User
Join Date: Nov 2009
Location: Legoland
Age: 45
Posts: 1,461
|
Ah well... Now its working how it should. Really great work you have done...
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with my keyboard ! | Mazout | support.WinFellow | 6 | 23 October 2014 11:15 |
Brazil's ABNT-2 keyboard support | Leandro Jardim | support.WinUAE | 1 | 21 February 2011 20:24 |
Keyboard problem with Captive | Gambit37 | support.WinUAE | 14 | 23 October 2005 22:31 |
Keyboard problem | AndyDE | support.WinUAE | 9 | 25 June 2004 12:25 |
Keyboard problem | nethermancer | support.WinUAE | 0 | 29 September 2002 20:11 |
|
|