Sign in to follow this  
Followers 0
DarkAngelBGE

Detecting when a key was released (not pressed!)

6 posts in this topic

Hi all, I am making a simple script that detects, whether the shift key is held down and for how long... When I try _IsPressed I cannot differentiate between the shift key being held down or if it has just been released.

Is there any way to do this? Thanks for your support!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

MouseHook by Larry. Perfect.

Edit: Or if you want to know whether it is released now.. Just use "If Not _IsPressed" :whistle:

Edited by Manadar

Share this post


Link to post
Share on other sites

Nah, I need to catch the exact moment. :whistle:

Nevermind, found out using GetKeyState of the user32.dll.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0