English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 08 January 2014, 22:52   #1
AGS
XoXo/Tasko Developer
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 46
Posts: 450
Happy How to check for Amiga+Q keys press?

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
AGS is offline  
Old 08 January 2014, 23:31   #2
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,324
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:
I have no Amiga Keys on my Keyboard ... what now?
Buy a pair of these and use the Windows keys.

In WinUAE you can also use the Isrt key (German Einfg) as left Amiga and Home (Pos1) as right Amiga key.
thomas is offline  
Old 08 January 2014, 23:35   #3
AGS
XoXo/Tasko Developer
AGS's Avatar
 
Join Date: Dec 2013
Location: Munich
Age: 46
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.
AGS 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
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

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:11.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.15677 seconds with 13 queries