Since you are on a Mac, make sure you are using a recent XQuartz. I don't know if the default X11 server supports xinput2.
Since you are on a Mac, make sure you are using a recent XQuartz. I don't know if the default X11 server supports xinput2.