Displaying key presses
Fred Graute (114) 627 posts |
Recently I’ve been experimenting with DeepKeys and how it might be used from StrongED/StrongMen. Both applications use text files for their configuration and allow user defined key bindings. Any keystroke definitions (eg cs-F1) need to be translated to data that can be matched in a key pressed event. Currently this is done by the KeyExtend module but the data it returns is not compatible with DeepKeys. So I wrote a prototype in BASIC to do the same but for DeepKeys, with the intention of creating a module (StrongKeys) to replace KeyExtend. To help see what’s going on this prototype displays various bits of information about key presses it receives. Such as:
Initially this was just intended as a prototype/test harness for the StrongKeys module but the information it presents is not easily available elsewhere so I was wondering if this might be useful as an application in its own right. I’ve uploaded a copy of StrongKey to try out. I’d be grateful for any kind of feedback. |
Raik (463) 2026 posts |
Works fine. Is what I need. It looks like you read my “old” wishes at ArcSite ;-) |
Martin Avison (27) 1417 posts |
Looks like it could be useful. I did notice that it polls continuously – is that necessary? |
Fred Graute (114) 627 posts |
That’s not why I created it but it is one reason for thinking it might be useful to others.
No, that’s just AppBasic’s default poll mask and easily fixed. At the moment not much optimisation has been done, it’s still what I created for personal use. A proper release version will be much smaller as it will use the StrongKeys module, which is already done but I need a SWI chunk allocated first. There is a bug in StrongKey that causes it to not always detect bound keys. I’ll put up a new version tomorrow that fixes this and the constant polling. |
Fred Graute (114) 627 posts |
An updated version of StrongKey is now on the website. This stops the constant polling that Martin reported and fixes the bug in the detection of bound keys. |
André Timmermans (100) 620 posts |
I didn’t even know StrongED allowed user defined key bindings. After looking around I found them in the BaseMode.ModeFile. Now I will quickly change them to use a little more standard bindings. |