Multitouch
class
class Multitouch {
static bool _initialized = false;
static bool _supportsGestureEvents = false;
static bool _supportsTouchEvents = html.TouchEvent.supported;
static int _maxTouchPoints = html.TouchEvent.supported ? 10 : 0;
static List<String> _supportedGestures = [];
static String _inputMode = MultitouchInputMode.NONE;
static StreamController<String> _inputModeChangedEvent = new StreamController<String>();
static Stream<String> _onInputModeChanged = _inputModeChangedEvent.stream.asBroadcastStream();
//------------------------------------------------------------------
static bool get supportsGestureEvents => _supportsGestureEvents;
static bool get supportsTouchEvents => _supportsTouchEvents;
static int get maxTouchPoints => _maxTouchPoints;
static List<String> get supportedGestures => _supportedGestures;
//------------------------------------------------------------------
static String get inputMode => _inputMode;
static set inputMode(String value) {
_inputMode = value;
_inputModeChangedEvent.add(_inputMode);
}
}
Static Properties
static String get inputMode => _inputMode;
static set inputMode(String value) {
_inputMode = value;
_inputModeChangedEvent.add(_inputMode);
}
final int maxTouchPoints #
static int get maxTouchPoints => _maxTouchPoints;
final List<String> supportedGestures #
static List<String> get supportedGestures => _supportedGestures;
final bool supportsGestureEvents #
static bool get supportsGestureEvents => _supportsGestureEvents;
final bool supportsTouchEvents #
static bool get supportsTouchEvents => _supportsTouchEvents;