Apply pointer capture changes only in mode POINTER_RELATIVE

Pointer Capture should not effect devices in NAVIGATION mode like
trackballs.

This CL also migrates the Pointer Mode enum to an enum class.

Bug: 233184154
Test: presubmit
Change-Id: Ic7a74588d44bd54086bd544c77880bd6037e5985
(cherry picked from commit 60656e32d1cf7ffb579cbc4257b78fdac61136c1)
2 files changed