Raised This Month: $ Target: $400
 0% 

How long a user is holding a button?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KCE
Senior Member
Join Date: Jan 2005
Location: Los Angeles, CA
Old 03-05-2005 , 20:55   How long a user is holding a button?
Reply With Quote #1

How do I check how long a user is holding a button and also if they are holding both the use button (e) and the crouch button (ctrl)?
KCE is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-06-2005 , 13:17  
Reply With Quote #2

Code:
new button = get_user_button(id); if( (button & IN_USE) && (button & IN_DUCK) ) {      // they are crouching and using }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode