Andrew Talbot : dinput: Use bitwise NOT not logical NOT.