![]() |
![]() |
#1 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
![]()
Hi
For the Stringgadgets of my GUI I need to listen for the key-combinations Amiga-Q and Amiga-X in my IDCMP-handling part. How can this be done? And further, I have no Amiga Keys on my Keyboard ... what now? greets, ags |
![]() |
![]() |
#2 | |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,047
|
When you say "String gadget" I suppose you mean your own self-written GUI object and not an Intuition struct Gadget with GTYP_STRGADGET or a STRGCLASS BOOPSI object?
If so, then just listen for IDCMP_VANILLAKEY with imsg->Class == 'q' and imsg->Qualifier with IEQUALIFIER_RCOMMAND and/or IEQUALIFIER_LCOMMAND set. But you also have to make sure that no menu has q as command key because the menu system takes precedence over vanillakey/rawkey. If you use Intuition gadgets then you probably have to code an edit hook because as long as the string gadget is active, all key presses are sent to the gadget. Except menu command keys like mentioned before. Quote:
In WinUAE you can also use the Isrt key (German Einfg) as left Amiga and Home (Pos1) as right Amiga key. |
|
![]() |
![]() |
#3 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
Thanks a lot. Will try using Code == q and Qualifier bit set. Yes, it's my own 'gadget'.
ps: I have only ONE not so nice key on my Keyboard. Let's see for which Amiga Key the FS-UAE uses that... ;D pps: I searched for 'IEQUALIFIER_RCOMMAND' and found this: http://amigadev.elowar.com/read/ADCD.../node01F3.html Last edited by AGS; 08 January 2014 at 23:55. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
a1200 press 3 keys ( A S D ) reset ?? | herakleus | support.Hardware | 11 | 30 January 2013 22:33 |
Quick spec check for Amiga O/S's | Macca | Amiga scene | 5 | 01 May 2008 09:55 |
How to error check an Amiga disk? | Medvind | New to Emulation or Amiga scene | 8 | 25 June 2004 17:08 |
A new Amiga Book from Microsoft Press | Pyromania | Amiga scene | 8 | 18 May 2003 18:34 |
Amiga Cases, Check It Out | xamigax | Retrogaming General Discussion | 6 | 03 April 2002 06:54 |
|
|