Blitz (46/144)

From:David McMinn
Date:14 May 2001 at 10:00:43
Subject:Re: Shapes with DisplayLib

Hi Terje

> > This generates an "event", use the Event or Waitevent command to cat
> > ch the event, and Rawkey to detemine the keycode (and hence the actual
> > key) that caused the keypress event.
>
>
> In Amiga mode please.
> I've looked at the BREXX Commands, but i can't seeme to do anything
> else than move the mouse pointer with these commands.

I can't remember what the original message was, but you don't use BRexx
to deal with events. It would just be something like this:

AddIDCMP #IDCMP_VANILLAKEY
Window 0,0,0,400,300,$100f,"fff",-1,-1
While ev.l<>#IDCMP_CLOSEWINDOW
ev = WaitEvent
Select ev
Case #IDCMP_RAWKEY
NPrint "Key pressed: ",EventCode
Case #IDCMP_VANILLAKEY
NPrint "Key pressed: ",EventCode," (",Chr$(EventCode),")"
End Select
Wend

Although I think the first message meant to use the RawStatus() command
instead of the EventCode command. However, that would mean you would have
to call rawstatus for every key you want to check.



|) /\ \/ ][ |) |\/| c |\/| ][ |\| |\| | dave@blitz-2000.co.uk
http://members.nbci.com/david_mcminn | ICQ=16827694
If Obi-wan ain't home then I don't know what the f**k we're gonna do. I
ain't got no other connections on Tattooine.
- Samuel L. Jackson, Jedi

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list/-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list/-help@netsoc.ucd.ie