ive-connect
Version:
A universal haptic device control library for interactive experiences
26 lines (25 loc) • 845 B
JavaScript
;
/**
* Core interfaces for haptic devices
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeviceCapability = exports.ConnectionState = void 0;
/**
* The connection state of a device
*/
var ConnectionState;
(function (ConnectionState) {
ConnectionState["DISCONNECTED"] = "disconnected";
ConnectionState["CONNECTING"] = "connecting";
ConnectionState["CONNECTED"] = "connected";
})(ConnectionState || (exports.ConnectionState = ConnectionState = {}));
/**
* Common device capabilities
*/
var DeviceCapability;
(function (DeviceCapability) {
DeviceCapability["VIBRATE"] = "vibrate";
DeviceCapability["ROTATE"] = "rotate";
DeviceCapability["LINEAR"] = "linear";
DeviceCapability["STROKE"] = "stroke";
})(DeviceCapability || (exports.DeviceCapability = DeviceCapability = {}));