I'm using this 'pièce' of code to enable running in my app:
else if (msg_id == id_pccommandinput_run1)
else if (msg_id == id_pccommandinput_run0)
I've bind "shift" for running.
The problem is: when you stop (i.e. release 'shift' and the movement key at the same time) while running, the player keeps moving in the same direction that it was moving before stopping with no keys pressed, although without running. I've tried adding some boolean variables to try to control the run; tried to disable movement when the run key is released too, both without success. I've just tried binding other key for running (here, 'z' key) and it worked fine. Why shouldn't the shift key work well?
Thanks in advance...
P.S. Offtopic -> We're soon going to release a little preview of our project. We're thinking in release a source package (only if the user have CS and CEL compiled it will work) and a windows binary (with all pre-compiled dlls). News soon...
P.S. 2 -> I'm using CS and CEL PseudoStable-09-03 in Linux.