fix for `get-current-mouse-state' on Mac OS X 10.5 and earlier

It looks like button-press information is not available on 10.5
and earlier, so so try to report it in that case.

Closes PR 13780