Post

 Resources 

Console


Re: Any DX 7 keybinding code? Amorano (0 replies, 0 views) (2001-Jan-12)
-
You mean like the way dx8 does it, obviously create by some to mimick the same thing as the action mapper? I don't think so. The best thing you could do is create it yourself. Basically, make an array of, say, mkey like this m_keys(255) as Long m_functs(255) as String Then basically what you do is assign function names (this is a quick and dirty method) and use callbyname to run them when you process the key input. The value field can be used to pass the actual high bit of the low byte :) for that particular devices info. Say the key is down, the value would be &H80 or 128, when it is released it would pass a 0. In the processing loop you run down through all the keys (note that I am only doing keyboard input here, but it applies to all devices).... for i = 0 to 255 if (m_keys(i) & H80) <> 0 then Callbyname I forgot the first paramter, vbmethod ,m_functs(i), paramters end if next i this is kinda slow, since it is using late binding, but it is sufficent enough to get things done. This is all off the top of my head, but I think the principle is sound.


-
Up One Level | Back to Forum


Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 51 visitors within the last 20 minutes
RSS News Feed