I've had no luck with this. I've figured out that "W" = 17, and the actionKeys for MoveFastForward (sprinting) is 273, but I can't for the life of my trap "MoveFastForward" being active...
Anyone know how to capture MoveFastForward to disable sprinting or how you capture a x2 keystroke?
Hmm - if the engine doesn't automatically coalesce the double-tab then the next best thing would be to add a timer in your key handler to detect this. Something like...
Code:
wActive=0;
wPressed={
wActive=wActive+1;
sleep 0.5; //exact delay may need some tweaking
wActive=wActive-1;
};
keyDown={
private ["_handled"];
_handled = false;
//walkbindings is an array of dik-codes for 'walk' action
if ((_this select 1) in WalkBindings) then {
_handled = (wActive >0) ;
[] spawn { call wPressed};
};
_handled;
};
(findDisplay 46) displayAddEventHandler ["KeyDown","this call keyDown"];