Default s pen distress

Does the s pen work in cyanogen mod and if not can it be ccoded back in to work