hidDarwinGetOpenExclusive function

bool hidDarwinGetOpenExclusive()

Get the current macOS exclusive device open mode.

Returns false on non-macOS platforms where the symbol does not exist.

Implementation

bool hidDarwinGetOpenExclusive() {
  try {
    return ffi.hid_darwin_get_open_exclusive() != 0;
  } on ArgumentError {
    return false;
  }
}