VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Virtual Key Checker (emulates DirectInput with API)

by Javin (3 Submissions)
Category: Games
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

I want to appologize in advance for the complete lack of commenting, or direction with this code. Note that this is for ADVANCED users. If you can't figure it out, I don't want to hear it. I didn't actually intend to post this for other people, so I didn't take any steps to make it easier to use, but I got to thinking maybe someone else can use it.
This uses only Windows API but has most of the same functionality as DirectX's InputEngine. Even quite a bit of functionality that DirectX's Input Engine doesn't have. About the only thing it doesn't do is joysticks. (Yet.) Believe it or not, the speed is actually comperable to DirectX too, and I often use this instead of the DirectX InputEngine in my DirectX apps.
It's fairly simple and straightforward (which is good since there's no accompanying examples). You create an instance of the class, and if you want to see if a key was pressed since the last time the object was called, you would check the value of VKObject.Pressed(VK_KEYNAME). Has handlers for mouse functions too.

Rate Virtual Key Checker (emulates DirectInput with API)

Download Virtual Key Checker (emulates DirectInput with API)

Download Virtual Key Checker (emulates DirectInput with API) (4 KB)

Virtual Key Checker (emulates DirectInput with API) Comments

No comments have been posted about Virtual Key Checker (emulates DirectInput with API). Why not be the first to post a comment about Virtual Key Checker (emulates DirectInput with API).

Post your comment

Subject:
Message:
0/1000 characters