Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

key events in view

 [1/3] from: deadzaphod::flyingparty::com at: 27-Nov-2001 19:01

Is there any way to detect the separate key up and key down events in view (so that I can have games where holding down two keys at once works)? Cal Dixon

 [2/3] from: cyphre:seznam:cz at: 28-Nov-2001 10:09

Hi Cal, I asked about that Holger recently so here is his answer: ------------------snip------------------------
> Another question is regarding keyboard. It is possible to detect somehow > multiple keypresses in rebol? I noticed you are probably use system
> keyboard handler for detecting keypresses so when I want to use keyboard
> controling game/animation etc. the keyboard behaves like in text > editor...with key delays and repetition. I would invited something like > 8-bit keycode mask for detecting multiple keys or just know if the key is > still pressed without the repetition of the key event. > Maybe there is another method how to achieve smooth and multiple key > detection?
Not really. Most operating systems have low-level keyboard routines, but then you have to deal with platform-specific encodings, i.e. you no longer get ASCII codes. At the moment we do not plan to support this any time soon. --------------------snip--------------------------------- So no good news for us :(... No quality keboard control in multimedia projects. I think the solution will be Rebol's own keyboard handler or at least simple mezanine function - "platform specific keypress decoder" which will read low-level keyboard codes and convert them into rebol key-events or something like that. (What's your opinion on that Holger?) BTW I tried to use SHIFT and CTRL keys with combination of other "common" key to achieve multiple keypresses but there are platform diferencies of the keyboard behavior too :( ie. when I wrote kb-handler under WIN port of /View and tried under Amiga and Mac I was unable to control the aplication in the way how it works on WIN.(I haven't test it under Linux yet so I don't know...) Regards, Cyphre

 [3/3] from: arolls:idatam:au at: 30-Nov-2001 17:36

Yes, it is a shame about the keyboard events. I noticed Solaris didn't seem to pick up the control/shift keys at all, if pressed by themselves, but I didn't analyse too much. Doesn't matter, there are plenty other things to work on for the moment. :) Anton.