Is there a way to set the sensitivity for the event receiver?
for example
if(receiver.IsKeyDown(irr::KEY_KEY_W))
index++;
instead of index = 1,2,3,4,5,6.....etc whenever W is press
"index" gets added multiple times.
set sensitivity for event receiver
Re: set sensitivity for event receiver
else
index = 0;
index = 0;
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: set sensitivity for event receiver
In most cases you check for the up event. Otherwise key repeat will return some down event, or may not.