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

[REBOL] Re: key events in view

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